diff options
author | Jun Fang <jun_fang@foxitsoftware.com> | 2016-01-12 16:08:53 -0800 |
---|---|---|
committer | Jun Fang <jun_fang@foxitsoftware.com> | 2016-01-12 16:08:53 -0800 |
commit | 2e535df617e1a3309a1725c143247302da18a728 (patch) | |
tree | 037bbc25541e780a7810e42e63958cb25ac9a0f9 /core | |
parent | b8226d6722738161251b57a2dd9de24729394819 (diff) | |
download | pdfium-2e535df617e1a3309a1725c143247302da18a728.tar.xz |
Fix memory leakage on Linux - part2
BUG=pdfium:348
R=tsepez@chromium.org
Review URL: https://codereview.chromium.org/1579883002 .
Diffstat (limited to 'core')
-rw-r--r-- | core/src/fxge/ge/fx_ge_font.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
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 |