Index: core/src/fxge/ge/fx_ge_font.cpp |
diff --git a/core/src/fxge/ge/fx_ge_font.cpp b/core/src/fxge/ge/fx_ge_font.cpp |
index 4c0cef40c43a41fe0ef9ba122c42668dd0dfcea4..56e178f985ed19cf8b306776701a851c7fc2b66d 100644 |
--- a/core/src/fxge/ge/fx_ge_font.cpp |
+++ b/core/src/fxge/ge/fx_ge_font.cpp |
@@ -106,11 +106,8 @@ FX_BOOL CFX_Font::LoadClone(const CFX_Font* pFont) { |
CFX_Font::~CFX_Font() { |
delete m_pSubstFont; |
- m_pSubstFont = NULL; |
-#ifndef PDF_ENABLE_XFA |
FX_Free(m_pFontDataAllocation); |
- m_pFontDataAllocation = NULL; |
-#else |
+#ifdef PDF_ENABLE_XFA |
if (m_bLogic) { |
m_OtfFontData.DetachBuffer(); |
return; |
@@ -130,10 +127,8 @@ CFX_Font::~CFX_Font() { |
} |
#ifdef PDF_ENABLE_XFA |
FX_Free(m_pOwnedStream); |
- m_pOwnedStream = NULL; |
#endif // PDF_ENABLE_XFA |
FX_Free(m_pGsubData); |
- m_pGsubData = NULL; |
#if _FXM_PLATFORM_ == _FXM_PLATFORM_APPLE_ |
ReleasePlatformResource(); |
#endif |