| 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 "../../../include/fpdfapi/fpdf_page.h" | 7 #include "../../../include/fpdfapi/fpdf_page.h" |
| 8 #include "../../../include/fpdfapi/fpdf_pageobj.h" | 8 #include "../../../include/fpdfapi/fpdf_pageobj.h" |
| 9 #include "../../../include/fpdfapi/fpdf_module.h" | 9 #include "../../../include/fpdfapi/fpdf_module.h" |
| 10 #include "../../../include/fpdfapi/fpdf_render.h" | 10 #include "../../../include/fpdfapi/fpdf_render.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 m_pTextList = NULL; | 31 m_pTextList = NULL; |
| 32 } | 32 } |
| 33 CPDF_ClipPathData::~CPDF_ClipPathData() | 33 CPDF_ClipPathData::~CPDF_ClipPathData() |
| 34 { | 34 { |
| 35 int i; | 35 int i; |
| 36 delete[] m_pPathList; | 36 delete[] m_pPathList; |
| 37 if (m_pTypeList) { | 37 if (m_pTypeList) { |
| 38 FX_Free(m_pTypeList); | 38 FX_Free(m_pTypeList); |
| 39 } | 39 } |
| 40 for (i = m_TextCount - 1; i > -1; i --) | 40 for (i = m_TextCount - 1; i > -1; i --) |
| 41 if (m_pTextList[i]) { | 41 delete m_pTextList[i]; |
| 42 delete m_pTextList[i]; | |
| 43 } | |
| 44 if (m_pTextList) { | 42 if (m_pTextList) { |
| 45 FX_Free(m_pTextList); | 43 FX_Free(m_pTextList); |
| 46 } | 44 } |
| 47 } | 45 } |
| 48 CPDF_ClipPathData::CPDF_ClipPathData(const CPDF_ClipPathData& src) | 46 CPDF_ClipPathData::CPDF_ClipPathData(const CPDF_ClipPathData& src) |
| 49 { | 47 { |
| 50 m_pPathList = NULL; | 48 m_pPathList = NULL; |
| 51 m_pPathList = NULL; | 49 m_pPathList = NULL; |
| 52 m_pTextList = NULL; | 50 m_pTextList = NULL; |
| 53 m_PathCount = src.m_PathCount; | 51 m_PathCount = src.m_PathCount; |
| (...skipping 647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 701 pDict = NULL; | 699 pDict = NULL; |
| 702 if (item.GetParamType() == CPDF_ContentMarkItem::PropertiesDict || | 700 if (item.GetParamType() == CPDF_ContentMarkItem::PropertiesDict || |
| 703 item.GetParamType() == CPDF_ContentMarkItem::DirectDict) { | 701 item.GetParamType() == CPDF_ContentMarkItem::DirectDict) { |
| 704 pDict = (CPDF_Dictionary*)item.GetParam(); | 702 pDict = (CPDF_Dictionary*)item.GetParam(); |
| 705 } | 703 } |
| 706 return TRUE; | 704 return TRUE; |
| 707 } | 705 } |
| 708 } | 706 } |
| 709 return FALSE; | 707 return FALSE; |
| 710 } | 708 } |
| OLD | NEW |