free, rather than delete, malloc'd object.
BUG=381031
Original patch by Chris Palmer <palmer@chromium.org>
Review URL: https://codereview.chromium.org/322453002
diff --git a/AUTHORS b/AUTHORS
index 89f1e58..1d2ef49 100644
--- 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>
diff --git a/core/src/fxcodec/jbig2/JBig2_Context.cpp b/core/src/fxcodec/jbig2/JBig2_Context.cpp
index 543f9ab..83ded6f 100644
--- a/core/src/fxcodec/jbig2/JBig2_Context.cpp
+++ b/core/src/fxcodec/jbig2/JBig2_Context.cpp
@@ -59,7 +59,7 @@
}
m_pGRD = NULL;
if(m_gbContext) {
- delete m_gbContext;
+ m_pModule->JBig2_Free(m_gbContext);
}
m_gbContext = NULL;
if(m_pGlobalContext) {