Fix crashes caused by retaining references in 557058f362

This commit is contained in:
Robin Gareus 2025-12-17 01:45:19 +01:00
parent 1721681c7d
commit 167359b300
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
2 changed files with 2 additions and 2 deletions

View file

@ -1083,7 +1083,7 @@ Editor::set_selected_regionview_from_map_event (GdkEventAny* /*ev*/, StreamView*
void
Editor::presentation_info_changed (PropertyChange const & what_changed)
{
if (!_session || _session->deletion_in_progress()) {
if (!_session) {
/* static signal, that the editor c'tor subscribes to.
* It may be received during connect_dependents_to_session() when
* signals are processed in BootMessage -> GUIIdle, just

View file

@ -1139,7 +1139,7 @@ struct TrackRecordAxisSorter {
void
RecorderUI::presentation_info_changed (PBD::PropertyChange const& what_changed)
{
if (!_session || _session->deletion_in_progress()) {
if (!_session) {
return;
}
if (what_changed.contains (Properties::hidden)) {