summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-10-28 10:51:01 +0100
committerCaolán McNamara <caolanm@redhat.com>2016-10-28 10:56:20 +0100
commitec06f95d91341c277d53828323fc0f4f3f8d9570 (patch)
treeb11a51273db8f1e254de30042af9ff7a297b70f3
parentcd3edd369bf3e846a897e4973de361b6380b74f3 (diff)
fix leak
Change-Id: I5bc8efa8a9de6d7a2be99f6c816e3dfca4f2b390
-rw-r--r--svx/source/dialog/hdft.cxx4
-rw-r--r--sw/source/ui/dialog/macassgn.cxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/svx/source/dialog/hdft.cxx b/svx/source/dialog/hdft.cxx
index 3a3c191e5e11..d2b28df00614 100644
--- a/svx/source/dialog/hdft.cxx
+++ b/svx/source/dialog/hdft.cxx
@@ -664,11 +664,11 @@ IMPL_LINK_NOARG(SvxHFPage, BackgroundHdl, Button*, void)
if(pFact)
{
//UUUU
- SfxAbstractTabDialog* pDlg = pFact->CreateSvxBorderBackgroundDlg(
+ ScopedVclPtr<SfxAbstractTabDialog> pDlg(pFact->CreateSvxBorderBackgroundDlg(
this,
*pBBSet,
true/*EnableBackgroundSelector*/,
- mbEnableDrawingLayerFillStyles);
+ mbEnableDrawingLayerFillStyles));
DBG_ASSERT(pDlg,"Dialog creation failed!");
if(RET_OK == pDlg->Execute() && pDlg->GetOutputItemSet())
diff --git a/sw/source/ui/dialog/macassgn.cxx b/sw/source/ui/dialog/macassgn.cxx
index 3fc1146a9183..2c324045c02e 100644
--- a/sw/source/ui/dialog/macassgn.cxx
+++ b/sw/source/ui/dialog/macassgn.cxx
@@ -119,7 +119,7 @@ bool SwMacroAssignDlg::INetFormatDlg( vcl::Window* pParent, SwWrtShell& rSh,
aSet.Put( AddEvents( MACASSGN_INETFMT ) );
SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create();
- SfxAbstractDialog* pMacroDlg = pFact->CreateSfxDialog( pParent, aSet,
+ VclPtr<SfxAbstractDialog> pMacroDlg = pFact->CreateSfxDialog( pParent, aSet,
rSh.GetView().GetViewFrame()->GetFrame().GetFrameInterface(),
SID_EVENTCONFIG );
if ( pMacroDlg && pMacroDlg->Execute() == RET_OK )