From 9e16edd0ffb834e87da76fe6b0fe4aef39312685 Mon Sep 17 00:00:00 2001 From: John Abd-El-Malek Date: Mon, 9 Jun 2014 16:10:57 -0700 Subject: free, rather than delete, malloc'd object. BUG=381031 Original patch by Chris Palmer Review URL: https://codereview.chromium.org/322453002 --- AUTHORS | 1 + core/src/fxcodec/jbig2/JBig2_Context.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/AUTHORS b/AUTHORS index 89f1e58769..1d2ef49de8 100644 --- a/AUTHORS +++ b/AUTHORS @@ -10,6 +10,7 @@ Andrey Khalyavin Brett Wilson +Chris Palmer Finnur Thorarinsson John Abd-El-Malek Julien Tinnes diff --git a/core/src/fxcodec/jbig2/JBig2_Context.cpp b/core/src/fxcodec/jbig2/JBig2_Context.cpp index 543f9abf63..83ded6fbe1 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); } m_gbContext = NULL; if(m_pGlobalContext) { -- cgit v1.2.3