mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-22 05:07:07 +01:00
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
This commit is contained in:
parent
825cb4ce18
commit
dce6d0e6a3
1 changed files with 6 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue