diff options
author | Robin Gareus <robin@gareus.org> | 2018-01-27 15:45:12 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2018-01-27 15:45:12 +0100 |
commit | d3a74d3c7050e5d7e1bb9ca0f655662ed774e4e6 (patch) | |
tree | 17d7303842744a290f223287a6766f1cf2caae59 /libs/ardour/session_state.cc | |
parent | ccddc0db3a345fbebf730596d2ba3754e260c2d3 (diff) |
Fix some small memory leak (libardour)
Diffstat (limited to 'libs/ardour/session_state.cc')
-rw-r--r-- | libs/ardour/session_state.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc index 0110b8e156..ebb2b99cc1 100644 --- a/libs/ardour/session_state.cc +++ b/libs/ardour/session_state.cc @@ -3974,7 +3974,6 @@ Session::restore_history (string snapshot_name) for (XMLNodeConstIterator it = tree.root()->children().begin(); it != tree.root()->children().end(); ++it) { XMLNode *t = *it; - UndoTransaction* ut = new UndoTransaction (); std::string name; int64_t tv_sec; @@ -3985,6 +3984,7 @@ Session::restore_history (string snapshot_name) continue; } + UndoTransaction* ut = new UndoTransaction (); ut->set_name (name); struct timeval tv; |