summaryrefslogtreecommitdiff
path: root/libs/ardour/session_state.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ardour/session_state.cc')
-rw-r--r--libs/ardour/session_state.cc2
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;