From f38a9843961ca3bb975800ee3db2456290dc89bc Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Fri, 25 Aug 2023 03:34:14 +0200 Subject: [PATCH] Fix deadlock when undoing Location removal --- libs/ardour/location.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/ardour/location.cc b/libs/ardour/location.cc index 3cad76256d..c68a38c923 100644 --- a/libs/ardour/location.cc +++ b/libs/ardour/location.cc @@ -1276,7 +1276,9 @@ Locations::set_state (const XMLNode& node, int version) lcs.emplace_back (std::move (loc)); loc->set_state (**niter, version); } else { - loc = new Location (_session, **niter); + loc = new Location (_session); + lcs.emplace_back (std::move (loc)); + loc->set_state (**niter, version); } bool add = true;