Index: core/src/fpdfapi/fpdf_font/ttgsubtable.cpp |
diff --git a/core/src/fpdfapi/fpdf_font/ttgsubtable.cpp b/core/src/fpdfapi/fpdf_font/ttgsubtable.cpp |
index 42f77de57bfab915e382e2700195ab16a6933300..e317aa67fd73bc3e33e01b09c9a17da9c97ed9ca 100644 |
--- a/core/src/fpdfapi/fpdf_font/ttgsubtable.cpp |
+++ b/core/src/fpdfapi/fpdf_font/ttgsubtable.cpp |
@@ -446,7 +446,7 @@ IFX_GSUBTable* FXGE_CreateGSUBTable(CFX_Font* pFont) |
if (pGsubTable->m_GsubImp.LoadGSUBTable((FT_Bytes)pFont->m_pGsubData)) { |
return pGsubTable; |
} |
- delete pGsubTable; |
+ pGsubTable->Release(); |
} |
return NULL; |
} |