diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2011-02-12 20:57:44 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2011-02-12 20:57:44 +0000 |
commit | dce6d0e6a37d76ef47bf3b44e4c76cd4d5588ecf (patch) | |
tree | 4e2522c5e49cd9d712de645361923753857bea3f /libs/pbd/undo.cc | |
parent | 825cb4ce18891f9c1f0a063c93262e19025c331d (diff) |
actually delete the contents of the history list, rather than just empty the list. could break things at session closing.
git-svn-id: svn://localhost/ardour2/branches/3.0@8833 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/pbd/undo.cc')
-rw-r--r-- | libs/pbd/undo.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/pbd/undo.cc b/libs/pbd/undo.cc index fd7c4d5fb8..c5c1cb238a 100644 --- 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; |