diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2014-07-28 18:27:15 +0900 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2014-07-28 10:16:06 +0000 |
commit | e221c954ea0b7c3846bd6971a06b6a28672a28c7 (patch) | |
tree | f6cd7f32d4178b3b2f903e44e13af69212a1c198 | |
parent | 42977e3ce7a65c5714a613a4e6af9aac6029bc32 (diff) |
fix a memory leak
Change-Id: I105f0ac40251122348ed86eaab5d99a023f5c09b
Reviewed-on: https://gerrit.libreoffice.org/10588
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
-rw-r--r-- | cui/source/customize/macropg.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cui/source/customize/macropg.cxx b/cui/source/customize/macropg.cxx index bd892507e004..8ab8d2b092f6 100644 --- a/cui/source/customize/macropg.cxx +++ b/cui/source/customize/macropg.cxx @@ -658,7 +658,7 @@ long _SvxMacroTabPage::GenericHandler_Impl( _SvxMacroTabPage* pThis, PushButton* else if( bAssEnabled ) { // assign pressed - SvxScriptSelectorDialog* pDlg = new SvxScriptSelectorDialog( pThis, false, pThis->GetFrame() ); + boost::scoped_ptr<SvxScriptSelectorDialog> pDlg(new SvxScriptSelectorDialog( pThis, false, pThis->GetFrame() )); if( pDlg ) { short ret = pDlg->Execute(); |