diff --git a/src/sourcetree/items/collectionitem.cpp b/src/sourcetree/items/collectionitem.cpp index 3d2c2a6b5..6f85111af 100644 --- a/src/sourcetree/items/collectionitem.cpp +++ b/src/sourcetree/items/collectionitem.cpp @@ -236,6 +236,8 @@ CollectionItem::playlistDeletedInternal( SourceTreeItem* parent, const T& p ) parent->beginRowsRemoved( i, i ); parent->removeChild( pl ); parent->endRowsRemoved(); + + delete pl; break; } }