diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-03-09 16:32:30 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-03-09 17:59:12 +0100 |
commit | 7657115dd98b0583852476d75e8676d1ff631014 (patch) | |
tree | 2f5fe358294ce95a221d9bbdc632b852f8eb0d06 /framework/source | |
parent | 9a4f558d00448110abed4f705989b0112a309fd8 (diff) |
coverity#705655: fix memory leak
Change-Id: Icf514d2f7cf678cb347c2e114f01ae8f56e2e999
Diffstat (limited to 'framework/source')
-rw-r--r-- | framework/source/services/license.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/source/services/license.cxx b/framework/source/services/license.cxx index 31057a98ef95..41db42bf11b1 100644 --- a/framework/source/services/license.cxx +++ b/framework/source/services/license.cxx @@ -292,8 +292,8 @@ css::uno::Any SAL_CALL License::execute(const css::uno::Sequence< css::beans::Na } // prepare to show // display license dialog - ResMgr* pResMgr = ResMgr::SearchCreateResMgr("fwe", aLocale); - boost::scoped_ptr<LicenseDialog> pDialog(new LicenseDialog(aLicensePath, pResMgr)); + boost::scoped_ptr<ResMgr> pResMgr(ResMgr::SearchCreateResMgr("fwe", aLocale)); + boost::scoped_ptr<LicenseDialog> pDialog(new LicenseDialog(aLicensePath, pResMgr.get())); sal_Bool bAgreed = (pDialog->Execute() == 1); if (bAgreed) { |