projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
825cb4c
)
actually delete the contents of the history list, rather than just empty the list...
author
Paul Davis
<paul@linuxaudiosystems.com>
Sat, 12 Feb 2011 20:57:44 +0000
(20:57 +0000)
committer
Paul Davis
<paul@linuxaudiosystems.com>
Sat, 12 Feb 2011 20:57:44 +0000
(20:57 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@8833
d708f5d6
-7413-0410-9779-
e7cbd77b26cf
libs/pbd/undo.cc
patch
|
blob
|
history
diff --git
a/libs/pbd/undo.cc
b/libs/pbd/undo.cc
index fd7c4d5fb85f6f052be32ae29bca7db9c039e592..c5c1cb238ad27f210cb892d8b38e29c27aecb3fb 100644
(file)
--- a/
libs/pbd/undo.cc
+++ b/
libs/pbd/undo.cc
@@
-295,6
+295,9
@@
void
UndoHistory::clear_redo ()
{
_clearing = true;
+ for (std::list<UndoTransaction*>::iterator i = RedoList.begin(); i != RedoList.end(); ++i) {
+ delete *i;
+ }
RedoList.clear ();
_clearing = false;
@@
-306,6
+309,9
@@
void
UndoHistory::clear_undo ()
{
_clearing = true;
+ for (std::list<UndoTransaction*>::iterator i = UndoList.begin(); i != UndoList.end(); ++i) {
+ delete *i;
+ }
UndoList.clear ();
_clearing = false;