| Index: core/src/fxcodec/jbig2/JBig2_Segment.cpp
|
| diff --git a/core/src/fxcodec/jbig2/JBig2_Segment.cpp b/core/src/fxcodec/jbig2/JBig2_Segment.cpp
|
| index afbf71a3df9a77429b472a522d99d312e34b0b06..39e4fafaa1fe30dcda7b4e481b38510683deda30 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);
|
|
|