[Libreoffice-commits] core.git: cui/source
Takeshi Abe
tabe at fixedpoint.jp
Mon Jul 28 03:16:37 PDT 2014
cui/source/customize/macropg.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit e221c954ea0b7c3846bd6971a06b6a28672a28c7
Author: Takeshi Abe <tabe at fixedpoint.jp>
Date: Mon Jul 28 18:27:15 2014 +0900
fix a memory leak
Change-Id: I105f0ac40251122348ed86eaab5d99a023f5c09b
Reviewed-on: https://gerrit.libreoffice.org/10588
Reviewed-by: David Tardon <dtardon at redhat.com>
Tested-by: David Tardon <dtardon at redhat.com>
diff --git a/cui/source/customize/macropg.cxx b/cui/source/customize/macropg.cxx
index bd89250..8ab8d2b 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();
More information about the Libreoffice-commits
mailing list