aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/Pl_Flate.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-02-06 19:53:16 +0100
committerJay Berkenbilt <ejb@ql.org>2022-02-07 23:38:22 +0100
commit40f1946df8acb0bb7fefdc3ab31f6285bb11d032 (patch)
tree87776a2a5f628bca1f4a1a0f46c4544aac7749e2 /libqpdf/Pl_Flate.cc
parentdd4f30226f3d4738e198dfcb944ce4cdc7e50a86 (diff)
downloadqpdf-40f1946df8acb0bb7fefdc3ab31f6285bb11d032.tar.zst
Replace PointerHolder arrays with shared_ptr arrays where possible
Replace PointerHolder arrays wherever it can be done without breaking ABI.
Diffstat (limited to 'libqpdf/Pl_Flate.cc')
-rw-r--r--libqpdf/Pl_Flate.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/libqpdf/Pl_Flate.cc b/libqpdf/Pl_Flate.cc
index a8b40867..586c3ea6 100644
--- a/libqpdf/Pl_Flate.cc
+++ b/libqpdf/Pl_Flate.cc
@@ -16,8 +16,7 @@ Pl_Flate::Members::Members(size_t out_bufsize,
initialized(false),
zdata(0)
{
- this->outbuf = PointerHolder<unsigned char>(
- true, new unsigned char[out_bufsize]);
+ this->outbuf = QUtil::make_shared_array<unsigned char>(out_bufsize);
// Indirect through zdata to reach the z_stream so we don't have
// to include zlib.h in Pl_Flate.hh. This means people using
// shared library versions of qpdf don't have to have zlib