diff options
author | nick_m <mainsbridge@gmail.com> | 2015-02-07 23:33:09 +1100 |
---|---|---|
committer | nick_m <mainsbridge@gmail.com> | 2015-02-07 23:33:09 +1100 |
commit | b1dafe9a3173e1c0dd437e7b895e09993f37ba9e (patch) | |
tree | 1801c3d728650cf311378fcf1c8ba946e93a11c7 /libs/pbd/undo.cc | |
parent | ae09d7132de0af856492f3ae69515ecebb6117e6 (diff) |
Properly deallocate memory when clearing selection_op_history and
before XMLNode*s.
Improve some comments.
Diffstat (limited to 'libs/pbd/undo.cc')
-rw-r--r-- | libs/pbd/undo.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/pbd/undo.cc b/libs/pbd/undo.cc index 2da9c7214d..182773ee49 100644 --- a/libs/pbd/undo.cc +++ b/libs/pbd/undo.cc @@ -220,7 +220,7 @@ UndoHistory::add (UndoTransaction* const ut) } UndoList.push_back (ut); - /* Adding a transacrion means that redo is meaningless from this point. */ + /* Adding a transacrion makes the redo list meaningless. */ _clearing = true; for (std::list<UndoTransaction*>::iterator i = RedoList.begin(); i != RedoList.end(); ++i) { delete *i; |