Chromium Code Reviews| Index: core/src/fxcodec/jbig2/JBig2_Context.cpp |
| diff --git a/core/src/fxcodec/jbig2/JBig2_Context.cpp b/core/src/fxcodec/jbig2/JBig2_Context.cpp |
| index 543f9abf632dc7bb181fa9672b185512a0b2f94d..83ded6fbe18f15ac81bde0b7d0de95d9b25ad2be 100644 |
| --- a/core/src/fxcodec/jbig2/JBig2_Context.cpp |
| +++ b/core/src/fxcodec/jbig2/JBig2_Context.cpp |
| @@ -59,7 +59,7 @@ CJBig2_Context::~CJBig2_Context() |
| } |
| m_pGRD = NULL; |
| if(m_gbContext) { |
| - delete m_gbContext; |
| + m_pModule->JBig2_Free(m_gbContext); |
|
jam
2014/06/05 23:50:23
seems that this is a problem with other member var
jun_fang
2014/06/09 01:26:24
A different way, JBIG2_ALLOC, is used for memory a
|
| } |
| m_gbContext = NULL; |
| if(m_pGlobalContext) { |