From d3a74d3c7050e5d7e1bb9ca0f655662ed774e4e6 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sat, 27 Jan 2018 15:45:12 +0100 Subject: Fix some small memory leak (libardour) --- libs/ardour/session_state.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs/ardour/session_state.cc') 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; -- cgit v1.2.3