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 559d8500b19a25c3aa2abbc87a009e7ad37af4c5..612b0e3716fc7f10cd7a1b2111677de185e6bd74 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; |
} |