diff options
author | thestig <thestig@chromium.org> | 2016-05-31 05:46:52 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-05-31 05:46:52 -0700 |
commit | 4dce6d4689d464c3a8825a5d6aa790adfc9228ee (patch) | |
tree | 5be0b62c28735f57f53994a490581108cfdce829 /fpdfsdk/fpdfxfa/fpdfxfa_app.cpp | |
parent | 8b3b3f59930eb29a80b3e83c0c724a50765b21f9 (diff) | |
download | pdfium-4dce6d4689d464c3a8825a5d6aa790adfc9228ee.tar.xz |
Fix a leak in CXFA_FontMgr.
Review-Url: https://codereview.chromium.org/2024713002
Diffstat (limited to 'fpdfsdk/fpdfxfa/fpdfxfa_app.cpp')
-rw-r--r-- | fpdfsdk/fpdfxfa/fpdfxfa_app.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fpdfsdk/fpdfxfa/fpdfxfa_app.cpp b/fpdfsdk/fpdfxfa/fpdfxfa_app.cpp index 16efc0a1de..f7a6a3ba00 100644 --- a/fpdfsdk/fpdfxfa/fpdfxfa_app.cpp +++ b/fpdfsdk/fpdfxfa/fpdfxfa_app.cpp @@ -61,7 +61,8 @@ FX_BOOL CPDFXFA_App::Initialize(v8::Isolate* pIsolate) { return FALSE; m_pXFAApp = new CXFA_FFApp(this); - m_pXFAApp->SetDefaultFontMgr(new CXFA_DefFontMgr); + m_pXFAApp->SetDefaultFontMgr( + std::unique_ptr<CXFA_DefFontMgr>(new CXFA_DefFontMgr)); #endif return TRUE; } |