fix leak
Change-Id: I5bc8efa8a9de6d7a2be99f6c816e3dfca4f2b390
This commit is contained in:
@@ -664,11 +664,11 @@ IMPL_LINK_NOARG(SvxHFPage, BackgroundHdl, Button*, void)
|
|||||||
if(pFact)
|
if(pFact)
|
||||||
{
|
{
|
||||||
//UUUU
|
//UUUU
|
||||||
SfxAbstractTabDialog* pDlg = pFact->CreateSvxBorderBackgroundDlg(
|
ScopedVclPtr<SfxAbstractTabDialog> pDlg(pFact->CreateSvxBorderBackgroundDlg(
|
||||||
this,
|
this,
|
||||||
*pBBSet,
|
*pBBSet,
|
||||||
true/*EnableBackgroundSelector*/,
|
true/*EnableBackgroundSelector*/,
|
||||||
mbEnableDrawingLayerFillStyles);
|
mbEnableDrawingLayerFillStyles));
|
||||||
|
|
||||||
DBG_ASSERT(pDlg,"Dialog creation failed!");
|
DBG_ASSERT(pDlg,"Dialog creation failed!");
|
||||||
if(RET_OK == pDlg->Execute() && pDlg->GetOutputItemSet())
|
if(RET_OK == pDlg->Execute() && pDlg->GetOutputItemSet())
|
||||||
|
@@ -119,7 +119,7 @@ bool SwMacroAssignDlg::INetFormatDlg( vcl::Window* pParent, SwWrtShell& rSh,
|
|||||||
aSet.Put( AddEvents( MACASSGN_INETFMT ) );
|
aSet.Put( AddEvents( MACASSGN_INETFMT ) );
|
||||||
|
|
||||||
SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create();
|
SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create();
|
||||||
SfxAbstractDialog* pMacroDlg = pFact->CreateSfxDialog( pParent, aSet,
|
VclPtr<SfxAbstractDialog> pMacroDlg = pFact->CreateSfxDialog( pParent, aSet,
|
||||||
rSh.GetView().GetViewFrame()->GetFrame().GetFrameInterface(),
|
rSh.GetView().GetViewFrame()->GetFrame().GetFrameInterface(),
|
||||||
SID_EVENTCONFIG );
|
SID_EVENTCONFIG );
|
||||||
if ( pMacroDlg && pMacroDlg->Execute() == RET_OK )
|
if ( pMacroDlg && pMacroDlg->Execute() == RET_OK )
|
||||||
|
Reference in New Issue
Block a user