OLD | NEW |
---|---|
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #include "JBig2_Context.h" | 7 #include "JBig2_Context.h" |
8 void OutputBitmap(CJBig2_Image* pImage) | 8 void OutputBitmap(CJBig2_Image* pImage) |
9 { | 9 { |
10 if(!pImage) { | 10 if(!pImage) { |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
52 { | 52 { |
53 if(m_pArithDecoder) { | 53 if(m_pArithDecoder) { |
54 delete m_pArithDecoder; | 54 delete m_pArithDecoder; |
55 } | 55 } |
56 m_pArithDecoder = NULL; | 56 m_pArithDecoder = NULL; |
57 if(m_pGRD) { | 57 if(m_pGRD) { |
58 delete m_pGRD; | 58 delete m_pGRD; |
59 } | 59 } |
60 m_pGRD = NULL; | 60 m_pGRD = NULL; |
61 if(m_gbContext) { | 61 if(m_gbContext) { |
62 delete m_gbContext; | 62 m_pModule->JBig2_Free(m_gbContext); |
jam
2014/06/05 23:50:23
seems that this is a problem with other member var
jun_fang
2014/06/09 01:26:24
A different way, JBIG2_ALLOC, is used for memory a
| |
63 } | 63 } |
64 m_gbContext = NULL; | 64 m_gbContext = NULL; |
65 if(m_pGlobalContext) { | 65 if(m_pGlobalContext) { |
66 delete m_pGlobalContext; | 66 delete m_pGlobalContext; |
67 } | 67 } |
68 m_pGlobalContext = NULL; | 68 m_pGlobalContext = NULL; |
69 if(m_pPageInfoList) { | 69 if(m_pPageInfoList) { |
70 delete m_pPageInfoList; | 70 delete m_pPageInfoList; |
71 } | 71 } |
72 m_pPageInfoList = NULL; | 72 m_pPageInfoList = NULL; |
(...skipping 1730 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1803 SBSYMCODES[CURTEMP].code = CURCODE; | 1803 SBSYMCODES[CURTEMP].code = CURCODE; |
1804 CURCODE = CURCODE + 1; | 1804 CURCODE = CURCODE + 1; |
1805 } | 1805 } |
1806 CURTEMP = CURTEMP + 1; | 1806 CURTEMP = CURTEMP + 1; |
1807 } | 1807 } |
1808 CURLEN = CURLEN + 1; | 1808 CURLEN = CURLEN + 1; |
1809 } | 1809 } |
1810 m_pModule->JBig2_Free(LENCOUNT); | 1810 m_pModule->JBig2_Free(LENCOUNT); |
1811 m_pModule->JBig2_Free(FIRSTCODE); | 1811 m_pModule->JBig2_Free(FIRSTCODE); |
1812 } | 1812 } |
OLD | NEW |