summaryrefslogtreecommitdiff
path: root/core/src/fxcodec/codec
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2015-09-24 14:38:44 -0700
committerLei Zhang <thestig@chromium.org>2015-09-24 14:38:44 -0700
commit07117051899498130a85f87e22b902eda03342b9 (patch)
tree22b67b345637cc2a1e0b8f33a3dfaad8e5560904 /core/src/fxcodec/codec
parentb060a551917627e3436bfb0a2a5c7a08cb5c58af (diff)
downloadpdfium-07117051899498130a85f87e22b902eda03342b9.tar.xz
Merge to XFA: Fix a leak in CJBig2_Context.
- Remove dead code - Use unique_ptr BUG=pdfium:202 TBR=tsepez@chromium.org Review URL: https://codereview.chromium.org/1365903002 . (cherry picked from commit 01c1e54a506329b36f87b0e37d3b419b70973342) Review URL: https://codereview.chromium.org/1371513002 .
Diffstat (limited to 'core/src/fxcodec/codec')
-rw-r--r--core/src/fxcodec/codec/fx_codec_jbig.cpp3
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;
}