13
0

Fix crash when CatchDeletion signal from self_delete arrives late

This is rather an unusual edge-case, seen on macOS when the UI
never continues past the first idle stage.
This commit is contained in:
Robin Gareus 2021-03-08 17:13:08 +01:00
parent 9ed877f0a1
commit cb6ad45e9d
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -908,9 +908,10 @@ RecorderUI::remove_route (TrackRecordAxis* ra)
return;
}
list<TrackRecordAxis*>::iterator i = find (_recorders.begin (), _recorders.end (), ra);
assert (i != _recorders.end ());
_rec_area.remove (**i);
_recorders.erase (i);
if (i != _recorders.end ()) {
_rec_area.remove (**i);
_recorders.erase (i);
}
update_rec_table_layout ();
}