summaryrefslogtreecommitdiff
path: root/basctl
diff options
context:
space:
mode:
authorArmin Le Grand <alg@apache.org>2012-08-16 08:59:54 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-05-02 11:27:00 +0100
commit96004917df7f93203c04ad879702c3fe03161c16 (patch)
tree9daa900deaef383b1bfe13037301d82b41d7bd44 /basctl
parent843e5560389011cbec2b51d0bb3bd8b8554b1fa9 (diff)
Related: #i120515# fixed memory leak
(cherry picked from commit b24737fc55e797d03002d44a1fa325a101617c55) Change-Id: Ib59957fb2c9e198012898293aaa2e5afbe561ef4
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/basicide/baside3.cxx5
1 files changed, 4 insertions, 1 deletions
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;
}