Index: core/fxcodec/codec/fx_codec_jbig.cpp |
diff --git a/core/fxcodec/codec/fx_codec_jbig.cpp b/core/fxcodec/codec/fx_codec_jbig.cpp |
index adc57fd1ad42a114659b334d630719b05ec542cb..7713ca3ecbe67d39e2b09e14ab2f5f85967bc27e 100644 |
--- a/core/fxcodec/codec/fx_codec_jbig.cpp |
+++ b/core/fxcodec/codec/fx_codec_jbig.cpp |
@@ -20,7 +20,7 @@ JBig2_DocumentContext::~JBig2_DocumentContext() {} |
JBig2_DocumentContext* GetJBig2DocumentContext( |
std::unique_ptr<JBig2_DocumentContext>* pContextHolder) { |
- if (!pContextHolder) |
+ if (!pContextHolder->get()) |
pContextHolder->reset(new JBig2_DocumentContext()); |
return pContextHolder->get(); |
} |