13
0

Fix deadlock when cut/pasting section to itself

This commit is contained in:
Robin Gareus 2023-09-05 18:29:50 +02:00
parent 5223d05854
commit 5c888f2b90
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -7333,8 +7333,9 @@ Session::cut_copy_section (timepos_t const& start, timepos_t const& end, timepos
XMLNode& tm_after (wmap->get_state());
add_command (new TempoCommand (_("cut tempo map"), &tm_before, &tm_after));
} else {
std::cerr << "no tempo map cut buffer\n";
delete &tm_before;
TempoMap::abort_update ();
TempoMap::SharedPtr tmap (TempoMap::fetch());
}
if (abort_empty_reversible_command ()) {