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

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

Issue 1332153002: Merge to XFA: Make a bunch of JBig2 classes independent of CJBig2_Object. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 3 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 | « core/src/fxcodec/jbig2/JBig2_PatternDict.h ('k') | core/src/fxcodec/jbig2/JBig2_Segment.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/src/fxcodec/jbig2/JBig2_PatternDict.cpp
diff --git a/core/src/fxcodec/jbig2/JBig2_PatternDict.cpp b/core/src/fxcodec/jbig2/JBig2_PatternDict.cpp
index 3469c368472b155a998b9496f4e40c044889ad35..21f6d6418278b0c4ed68834a58a54241a1fd3e6b 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);
}
}
« no previous file with comments | « core/src/fxcodec/jbig2/JBig2_PatternDict.h ('k') | core/src/fxcodec/jbig2/JBig2_Segment.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698