incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r1373773 - /incubator/ooo/trunk/main/basctl/source/basicide/baside3.cxx
Date Thu, 16 Aug 2012 09:59:55 GMT
Author: alg
Date: Thu Aug 16 09:59:54 2012
New Revision: 1373773

URL: http://svn.apache.org/viewvc?rev=1373773&view=rev
Log:
#120515# fixed memory leak

Modified:
    incubator/ooo/trunk/main/basctl/source/basicide/baside3.cxx

Modified: incubator/ooo/trunk/main/basctl/source/basicide/baside3.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/basctl/source/basicide/baside3.cxx?rev=1373773&r1=1373772&r2=1373773&view=diff
==============================================================================
--- incubator/ooo/trunk/main/basctl/source/basicide/baside3.cxx (original)
+++ incubator/ooo/trunk/main/basctl/source/basicide/baside3.cxx Thu Aug 16 09:59:54 2012
@@ -265,7 +265,10 @@ void DialogWindow::Command( const Comman
 
 IMPL_LINK( DialogWindow, NotifyUndoActionHdl, SfxUndoAction *, pUndoAction )
 {
-	(void)pUndoAction;
+    // #120515# pUndoAction needs to be deleted, this hand over is an ownership
+    // change. As long as it does not get added to the undo manager, it needs at 
+    // least to be deleted.
+	delete pUndoAction;
 
 	// not working yet for unocontrols
 	/*



Mime
View raw message