diff options
author | Lei Zhang <thestig@chromium.org> | 2018-09-11 07:59:18 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-09-11 07:59:18 +0000 |
commit | bb06ae5ad0b6389490befc6831517ab383e94031 (patch) | |
tree | 97e9e2367db537f6a4f459481d77103973450b3c /core/fxcodec/codec/ccodec_flatemodule.h | |
parent | c2f404f993f13d303f9e47d2f97aff727becac7d (diff) | |
download | pdfium-bb06ae5ad0b6389490befc6831517ab383e94031.tar.xz |
Make flate decode functions' buffer out parameter unique_ptrs.
Change-Id: Idb14846e87a8287dd911b0a2f7a32146e86c2af7
Reviewed-on: https://pdfium-review.googlesource.com/41853
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fxcodec/codec/ccodec_flatemodule.h')
-rw-r--r-- | core/fxcodec/codec/ccodec_flatemodule.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/fxcodec/codec/ccodec_flatemodule.h b/core/fxcodec/codec/ccodec_flatemodule.h index 11281522e0..591d13d42e 100644 --- a/core/fxcodec/codec/ccodec_flatemodule.h +++ b/core/fxcodec/codec/ccodec_flatemodule.h @@ -9,6 +9,7 @@ #include <memory> +#include "core/fxcrt/fx_memory.h" #include "core/fxcrt/fx_system.h" #include "third_party/base/span.h" @@ -35,7 +36,7 @@ class CCodec_FlateModule { int BitsPerComponent, int Columns, uint32_t estimated_size, - uint8_t** dest_buf, + std::unique_ptr<uint8_t, FxFreeDeleter>* dest_buf, uint32_t* dest_size); bool Encode(const uint8_t* src_buf, |