fix crash caused by not explicitly deleting the line component of a Marker (#8737)

This commit is contained in:
Paul Davis 2021-06-11 10:24:49 -06:00
parent 47b06afc9d
commit 11798f7e86
1 changed files with 4 additions and 0 deletions

View File

@ -331,6 +331,10 @@ ArdourMarker::~ArdourMarker ()
{
CatchDeletion (this); /* EMIT SIGNAL */
/* not a member of a group that we own, so we must delete it explicitly */
delete _track_canvas_line;
/* destroying the parent group destroys its contents, namely any polygons etc. that we added */
delete group;
delete points;