free, rather than delete, malloc'd object.
authorJohn Abd-El-Malek <jam@chromium.org>
Mon, 9 Jun 2014 23:10:57 +0000 (16:10 -0700)
committerJohn Abd-El-Malek <jam@chromium.org>
Mon, 9 Jun 2014 23:10:57 +0000 (16:10 -0700)
BUG=381031

Original patch by Chris Palmer <palmer@chromium.org>

Review URL: https://codereview.chromium.org/322453002

AUTHORS
core/src/fxcodec/jbig2/JBig2_Context.cpp

diff --git a/AUTHORS b/AUTHORS
index 89f1e58..1d2ef49 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -10,6 +10,7 @@
 
 Andrey Khalyavin <halyavin@chromium.org>
 Brett Wilson <brettw@chromium.org>
+Chris Palmer <palmer@chromium.org>
 Finnur Thorarinsson <finnur@chromium.org>
 John Abd-El-Malek <jam@chromium.org>
 Julien Tinnes <jln@chromium.org>
index 543f9ab..83ded6f 100644 (file)
@@ -59,7 +59,7 @@ CJBig2_Context::~CJBig2_Context()
     }
     m_pGRD = NULL;
     if(m_gbContext) {
-        delete m_gbContext;
+        m_pModule->JBig2_Free(m_gbContext);
     }
     m_gbContext = NULL;
     if(m_pGlobalContext) {