Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(125)

Unified Diff: core/src/fxcodec/jbig2/JBig2_Context.cpp

Issue 322453002: free, rather than delete, malloc'd object. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698