From f8d545b0d32624a60b4cf68114098c18d606984b Mon Sep 17 00:00:00 2001 From: saker Date: Wed, 27 Nov 2024 02:24:00 -0500 Subject: [PATCH] Check if track container exists before deleting track from it --- src/core/Track.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/Track.cpp b/src/core/Track.cpp index b216157fa34..392b5d6ea87 100644 --- a/src/core/Track.cpp +++ b/src/core/Track.cpp @@ -84,7 +84,7 @@ Track::~Track() delete m_clips.back(); } - m_trackContainer->removeTrack( this ); + if (m_trackContainer) { m_trackContainer->removeTrack(this); } unlock(); }