13
0

Fix crash when removing Routes and VCA

VCATimeAxisView::self_delete () resets _vca and queues delete_when_idle.
From now on STAV::strippable () will return 0.

Editor::idle_remove_tracks() returns, and before the VCATimeAxisView
is destroyed. Editor::redisplay_track_views() may be called.

The VCATimeAxisView still exists at this point and is in
Editor::track_views, but has no valid stripable.

This causes a crash in TrackViewStripableSorter which depends
on STAV::stripable();
This commit is contained in:
Robin Gareus 2022-01-29 05:06:57 +01:00
parent 92024697aa
commit 83719fba1a
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -129,8 +129,6 @@ VCATimeAxisView::~VCATimeAxisView ()
void
VCATimeAxisView::self_delete ()
{
/* reset reference immediately rather than deferring to idle */
_vca.reset ();
delete_when_idle (this);
}