merge to XFA: Fix -Wnon-virtual-dtor compiler warnings.
[pdfium.git] / core / src / fpdfapi / fpdf_font / ttgsubtable.cpp
index 42f77de..e317aa6 100644 (file)
@@ -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;
 }