Index: core/src/fpdfapi/fpdf_page/fpdf_page_graph_state.cpp |
diff --git a/core/src/fpdfapi/fpdf_page/fpdf_page_graph_state.cpp b/core/src/fpdfapi/fpdf_page/fpdf_page_graph_state.cpp |
index 40ec13ea6efdea2834c1e65b95f4ed2e5a6de6d6..f79fcda0a0028fa62d1f3bd6e890ec2e9b385309 100644 |
--- a/core/src/fpdfapi/fpdf_page/fpdf_page_graph_state.cpp |
+++ b/core/src/fpdfapi/fpdf_page/fpdf_page_graph_state.cpp |
@@ -192,8 +192,7 @@ void CPDF_ClipPath::AppendTexts(CPDF_TextObject** pTexts, int count) |
CPDF_ClipPathData* pData = GetModify(); |
if (pData->m_TextCount + count > FPDF_CLIPPATH_MAX_TEXTS) { |
for (int i = 0; i < count; i ++) { |
- if (pTexts[i]) |
- pTexts[i]->Release(); |
+ delete pTexts[i]; |
} |
return; |
} |