Fix crash when loading session from a running instance

ViewBackground never unsubscribed from UIConfiguration
callbacks when it was destroyed. Loading another session
that can cause UIConfig change signals to be emitted
caused a heap-use-after-free.
This commit is contained in:
Robin Gareus 2024-12-05 03:46:09 +01:00
parent c024820864
commit 7a06524f79
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
2 changed files with 2 additions and 2 deletions

View file

@ -65,7 +65,7 @@ class RegionSelection;
class CrossfadeView;
class Selection;
class StreamView : public sigc::trackable, public PBD::ScopedConnectionList, public virtual ViewBackground, public SelectableOwner
class StreamView : public PBD::ScopedConnectionList, public virtual ViewBackground, public SelectableOwner
{
public:
virtual ~StreamView ();

View file

@ -34,7 +34,7 @@ namespace ArdourCanvas {
/** A class that provides limited context for a View
*/
class ViewBackground
class ViewBackground : public sigc::trackable
{
public:
ViewBackground ();