From 2e535df617e1a3309a1725c143247302da18a728 Mon Sep 17 00:00:00 2001 From: Jun Fang Date: Tue, 12 Jan 2016 16:08:53 -0800 Subject: Fix memory leakage on Linux - part2 BUG=pdfium:348 R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1579883002 . --- core/src/fxge/ge/fx_ge_font.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'core') diff --git a/core/src/fxge/ge/fx_ge_font.cpp b/core/src/fxge/ge/fx_ge_font.cpp index 4c0cef40c4..56e178f985 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 -- cgit v1.2.3