fix leak
Change-Id: I5bc8efa8a9de6d7a2be99f6c816e3dfca4f2b390
This commit is contained in:
@@ -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())
|
||||
|
@@ -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 )
|
||||
|
Reference in New Issue
Block a user