diff options
author | Lei Zhang <thestig@chromium.org> | 2015-09-23 17:07:33 -0700 |
---|---|---|
committer | Lei Zhang <thestig@chromium.org> | 2015-09-23 17:07:33 -0700 |
commit | 99b56f693e01e1d5e146cbfba8c750b943a0eaab (patch) | |
tree | eece176bdaed5c06eb71c159f7f5cf39439360b4 | |
parent | 600d4078309f9f41df24e2f12bc4b5d9e05567ba (diff) | |
download | pdfium-99b56f693e01e1d5e146cbfba8c750b943a0eaab.tar.xz |
Merge to XFA: Fix a leak in CJBig2_CachePair.
TBR=jbreiden@google.com
Review URL: https://codereview.chromium.org/1346043003 .
(cherry picked from commit b6b336a0a1849526f66c49588daa2ccdd09d42cd)
Review URL: https://codereview.chromium.org/1365813004 .
-rw-r--r-- | core/src/fxcodec/codec/fx_codec_jbig.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/core/src/fxcodec/codec/fx_codec_jbig.cpp b/core/src/fxcodec/codec/fx_codec_jbig.cpp index dec7330fe2..dca653de31 100644 --- a/core/src/fxcodec/codec/fx_codec_jbig.cpp +++ b/core/src/fxcodec/codec/fx_codec_jbig.cpp @@ -10,7 +10,13 @@ CCodec_Jbig2Context::CCodec_Jbig2Context() { FXSYS_memset(this, 0, sizeof(CCodec_Jbig2Context)); } -CCodec_Jbig2Module::~CCodec_Jbig2Module() {} + +CCodec_Jbig2Module::~CCodec_Jbig2Module() { + for (auto it : m_SymbolDictCache) { + delete it.second; + } +} + void* CCodec_Jbig2Module::CreateJbig2Context() { return new CCodec_Jbig2Context(); } |