From 01c1e54a506329b36f87b0e37d3b419b70973342 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Thu, 24 Sep 2015 12:56:29 -0700 Subject: Fix a leak in CJBig2_Context. - Remove dead code - Use unique_ptr BUG=pdfium:202 R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1365903002 . --- core/src/fxcodec/codec/fx_codec_jbig.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'core/src/fxcodec/codec/fx_codec_jbig.cpp') 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; } -- cgit v1.2.3