diff options
author | Lei Zhang <thestig@chromium.org> | 2018-09-14 21:56:59 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-09-14 21:56:59 +0000 |
commit | c6ab97b5b5be7083c4929b7f08b33203a7f932da (patch) | |
tree | f7d7baca1425d1a2928abd490ffdd9cf19075d2b /xfa/fgas/font/cfgas_gefont.cpp | |
parent | 5091a49b4a0549375a196a6f8c539f25ff48c3e7 (diff) | |
download | pdfium-c6ab97b5b5be7083c4929b7f08b33203a7f932da.tar.xz |
Use UnownedPtr in CFX_UnicodeEncoding.
Change-Id: I410909be359a5b5bb0c90d42064144771183525e
Reviewed-on: https://pdfium-review.googlesource.com/42461
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'xfa/fgas/font/cfgas_gefont.cpp')
-rw-r--r-- | xfa/fgas/font/cfgas_gefont.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xfa/fgas/font/cfgas_gefont.cpp b/xfa/fgas/font/cfgas_gefont.cpp index 0a57f54cdd..1c3d88beab 100644 --- a/xfa/fgas/font/cfgas_gefont.cpp +++ b/xfa/fgas/font/cfgas_gefont.cpp @@ -12,7 +12,6 @@ #include "core/fxcrt/fx_codepage.h" #include "core/fxge/cfx_font.h" #include "core/fxge/cfx_substfont.h" -#include "core/fxge/cfx_unicodeencoding.h" #include "core/fxge/cfx_unicodeencodingex.h" #include "third_party/base/ptr_util.h" #include "xfa/fgas/font/fgas_fontutils.h" @@ -57,6 +56,7 @@ RetainPtr<CFGAS_GEFont> CFGAS_GEFont::LoadFont( CFGAS_GEFont::CFGAS_GEFont(CFGAS_FontMgr* pFontMgr) : m_pFontMgr(pFontMgr) {} CFGAS_GEFont::~CFGAS_GEFont() { + m_pFontEncoding.reset(); // Has an UnownedPtr to |m_pFont|. if (!m_bExternalFont) delete m_pFont; } |