From 96004917df7f93203c04ad879702c3fe03161c16 Mon Sep 17 00:00:00 2001 From: Armin Le Grand Date: Thu, 16 Aug 2012 08:59:54 +0000 Subject: Related: #i120515# fixed memory leak (cherry picked from commit b24737fc55e797d03002d44a1fa325a101617c55) Change-Id: Ib59957fb2c9e198012898293aaa2e5afbe561ef4 --- basctl/source/basicide/baside3.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'basctl/source') diff --git a/basctl/source/basicide/baside3.cxx b/basctl/source/basicide/baside3.cxx index debf652b0ce0..2643400dcc01 100644 --- a/basctl/source/basicide/baside3.cxx +++ b/basctl/source/basicide/baside3.cxx @@ -225,7 +225,10 @@ void DialogWindow::Command( const CommandEvent& rCEvt ) IMPL_LINK( DialogWindow, NotifyUndoActionHdl, SfxUndoAction *, pUndoAction ) { - (void)pUndoAction; + // #i120515# 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; return 0; } -- cgit