diff options
Diffstat (limited to 'libqpdf/Pl_DCT.cc')
-rw-r--r-- | libqpdf/Pl_DCT.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libqpdf/Pl_DCT.cc b/libqpdf/Pl_DCT.cc index e4646dab..5b42b827 100644 --- a/libqpdf/Pl_DCT.cc +++ b/libqpdf/Pl_DCT.cc @@ -283,8 +283,7 @@ Pl_DCT::compress(void* cinfo_p, Buffer* b) # pragma GCC diagnostic pop #endif static int const BUF_SIZE = 65536; - PointerHolder<unsigned char> outbuffer_ph( - true, new unsigned char[BUF_SIZE]); + auto outbuffer_ph = std::make_unique<unsigned char[]>(BUF_SIZE); unsigned char* outbuffer = outbuffer_ph.get(); jpeg_pipeline_dest(cinfo, outbuffer, BUF_SIZE, this->getNext()); |