Index: core/fpdfapi/fpdf_font/fpdf_font_cid.cpp |
diff --git a/core/fpdfapi/fpdf_font/fpdf_font_cid.cpp b/core/fpdfapi/fpdf_font/fpdf_font_cid.cpp |
index f3c5f05d51ec071ca469de5e427024d3bdd02242..93d29d9bc70da61855185ff237a499a8049d851d 100644 |
--- a/core/fpdfapi/fpdf_font/fpdf_font_cid.cpp |
+++ b/core/fpdfapi/fpdf_font/fpdf_font_cid.cpp |
@@ -413,6 +413,7 @@ void CPDF_CMapParser::ParseWord(const CFX_ByteStringC& word) { |
if (nSegs > 1) { |
m_pCMap->m_CodingScheme = CPDF_CMap::MixedFourBytes; |
m_pCMap->m_nCodeRanges = nSegs; |
+ FX_Free(m_pCMap->m_pLeadingBytes); |
m_pCMap->m_pLeadingBytes = |
FX_Alloc2D(uint8_t, nSegs, sizeof(CMap_CodeRange)); |
FXSYS_memcpy(m_pCMap->m_pLeadingBytes, m_CodeRanges.GetData(), |