diff options
author | Lei Zhang <thestig@chromium.org> | 2015-09-24 12:56:29 -0700 |
---|---|---|
committer | Lei Zhang <thestig@chromium.org> | 2015-09-24 12:56:29 -0700 |
commit | 01c1e54a506329b36f87b0e37d3b419b70973342 (patch) | |
tree | 3ac9b8209141c06439635a77690143e9c0c2771f /core/src/fxcodec/codec | |
parent | 630a28442364f03c1d3d9b48873da42755e1fddf (diff) | |
download | pdfium-01c1e54a506329b36f87b0e37d3b419b70973342.tar.xz |
Fix a leak in CJBig2_Context.chromium/2520
- Remove dead code
- Use unique_ptr
BUG=pdfium:202
R=tsepez@chromium.org
Review URL: https://codereview.chromium.org/1365903002 .
Diffstat (limited to 'core/src/fxcodec/codec')
-rw-r--r-- | core/src/fxcodec/codec/fx_codec_jbig.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/src/fxcodec/codec/fx_codec_jbig.cpp b/core/src/fxcodec/codec/fx_codec_jbig.cpp index dca653de31..2cdff9f88c 100644 --- a/core/src/fxcodec/codec/fx_codec_jbig.cpp +++ b/core/src/fxcodec/codec/fx_codec_jbig.cpp @@ -54,8 +54,7 @@ FXCODEC_STATUS CCodec_Jbig2Module::StartDecode(void* pJbig2Context, m_pJbig2Context->m_bFileReader = FALSE; FXSYS_memset(dest_buf, 0, height * dest_pitch); m_pJbig2Context->m_pContext = CJBig2_Context::CreateContext( - global_data, global_size, src_buf, src_size, JBIG2_EMBED_STREAM, - &m_SymbolDictCache, pPause); + global_data, global_size, src_buf, src_size, &m_SymbolDictCache, pPause); if (!m_pJbig2Context->m_pContext) { return FXCODEC_STATUS_ERROR; } |