From 4dce6d4689d464c3a8825a5d6aa790adfc9228ee Mon Sep 17 00:00:00 2001 From: thestig Date: Tue, 31 May 2016 05:46:52 -0700 Subject: Fix a leak in CXFA_FontMgr. Review-Url: https://codereview.chromium.org/2024713002 --- fpdfsdk/fpdfxfa/fpdfxfa_app.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'fpdfsdk/fpdfxfa') 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(new CXFA_DefFontMgr)); #endif return TRUE; } -- cgit v1.2.3