summaryrefslogtreecommitdiff
path: root/svx/source/form/fmtextcontrolshell.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/form/fmtextcontrolshell.cxx')
-rw-r--r--svx/source/form/fmtextcontrolshell.cxx10
1 files changed, 6 insertions, 4 deletions
diff --git a/svx/source/form/fmtextcontrolshell.cxx b/svx/source/form/fmtextcontrolshell.cxx
index 13f2b0cb69..e53a3966c6 100644
--- a/svx/source/form/fmtextcontrolshell.cxx
+++ b/svx/source/form/fmtextcontrolshell.cxx
@@ -670,15 +670,15 @@ namespace svx
//------------------------------------------------------------------------
void FmTextControlShell::executeAttributeDialog( AttributeSet _eSet, SfxRequest& _rReq )
{
- ::std::auto_ptr< SfxItemPool > pPool( EditEngine::CreatePool() );
- pPool->FreezeIdRanges();
- SfxItemSet aPureItems( *pPool );
-
const SvxFontListItem* pFontList = PTR_CAST( SvxFontListItem, m_pViewFrame->GetObjectShell()->GetItem( SID_ATTR_CHAR_FONTLIST ) );
DBG_ASSERT( pFontList, "FmTextControlShell::executeAttributeDialog: no font list item!" );
if ( !pFontList )
return;
+ SfxItemPool* pPool = EditEngine::CreatePool();
+ pPool->FreezeIdRanges();
+ SfxItemSet aPureItems( *pPool );
+
// put the current states of the items into the set
SfxAllItemSet aCurrentItems( aPureItems );
transferFeatureStatesToItemSet( m_aControlFeatures, aCurrentItems );
@@ -774,6 +774,8 @@ namespace svx
}
_rReq.Done( rModifiedItems );
}
+
+ SfxItemPool::Free(pPool);
}
//------------------------------------------------------------------------