summaryrefslogtreecommitdiffstats
path: root/sw
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 /sw
parentcan do this in one step (diff)
downloadcore-ec06f95d91341c277d53828323fc0f4f3f8d9570.tar.gz
core-ec06f95d91341c277d53828323fc0f4f3f8d9570.zip
fix leak
Change-Id: I5bc8efa8a9de6d7a2be99f6c816e3dfca4f2b390
Diffstat (limited to 'sw')
-rw-r--r--sw/source/ui/dialog/macassgn.cxx2
1 files changed, 1 insertions, 1 deletions
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 )