summaryrefslogtreecommitdiff
path: root/core/src/fxcodec/jbig2/JBig2_Segment.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/fxcodec/jbig2/JBig2_Segment.cpp')
-rw-r--r--core/src/fxcodec/jbig2/JBig2_Segment.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/core/src/fxcodec/jbig2/JBig2_Segment.cpp b/core/src/fxcodec/jbig2/JBig2_Segment.cpp
index afbf71a3df..39e4fafaa1 100644
--- a/core/src/fxcodec/jbig2/JBig2_Segment.cpp
+++ b/core/src/fxcodec/jbig2/JBig2_Segment.cpp
@@ -6,12 +6,6 @@
#include "JBig2_Segment.h"
CJBig2_Segment::CJBig2_Segment() {
- init();
-}
-CJBig2_Segment::~CJBig2_Segment() {
- clean();
-}
-void CJBig2_Segment::init() {
m_dwNumber = 0;
m_cFlags.c = 0;
m_nReferred_to_segment_count = 0;
@@ -24,6 +18,9 @@ void CJBig2_Segment::init() {
m_nResultType = JBIG2_VOID_POINTER;
m_Result.vd = NULL;
}
+CJBig2_Segment::~CJBig2_Segment() {
+ clean();
+}
void CJBig2_Segment::clean() {
if (m_pReferred_to_segment_numbers) {
m_pModule->JBig2_Free(m_pReferred_to_segment_numbers);