summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
Diffstat (limited to 'framework')
-rw-r--r--framework/source/services/license.cxx4
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) {