summaryrefslogtreecommitdiff
path: root/core/src/fxcodec/jbig2/JBig2_PatternDict.cpp
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2015-09-10 16:34:17 -0700
committerLei Zhang <thestig@chromium.org>2015-09-10 16:34:17 -0700
commita7f5386053136db6d41b1fc4943544ec623704c3 (patch)
tree3c8e8345078b166fcbd55bd2f258de98146e00b3 /core/src/fxcodec/jbig2/JBig2_PatternDict.cpp
parent808a99e8c6f72713ca9492508faa4b8445ae0d33 (diff)
downloadpdfium-a7f5386053136db6d41b1fc4943544ec623704c3.tar.xz
Merge to XFA: Make a bunch of JBig2 classes independent of CJBig2_Object.
TBR=tsepez@chromium.org Review URL: https://codereview.chromium.org/1319713003 . (cherry picked from commit 800bf5ac07305ccf9c9522c8c76f728a4fd99da5) Review URL: https://codereview.chromium.org/1332153002 .
Diffstat (limited to 'core/src/fxcodec/jbig2/JBig2_PatternDict.cpp')
-rw-r--r--core/src/fxcodec/jbig2/JBig2_PatternDict.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/src/fxcodec/jbig2/JBig2_PatternDict.cpp b/core/src/fxcodec/jbig2/JBig2_PatternDict.cpp
index 3469c36847..21f6d64182 100644
--- a/core/src/fxcodec/jbig2/JBig2_PatternDict.cpp
+++ b/core/src/fxcodec/jbig2/JBig2_PatternDict.cpp
@@ -5,6 +5,9 @@
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#include "JBig2_PatternDict.h"
+
+#include "../../../include/fxcrt/fx_memory.h"
+
CJBig2_PatternDict::CJBig2_PatternDict() {
NUMPATS = 0;
HDPATS = NULL;
@@ -15,6 +18,6 @@ CJBig2_PatternDict::~CJBig2_PatternDict() {
for (FX_DWORD i = 0; i < NUMPATS; i++) {
delete HDPATS[i];
}
- m_pModule->JBig2_Free(HDPATS);
+ FX_Free(HDPATS);
}
}