mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-09 07:36:48 +02:00
TWK-441: Try to fix crash where sourcetreeitem would hold on to a dangling parent
This commit is contained in:
@@ -236,6 +236,8 @@ CollectionItem::playlistDeletedInternal( SourceTreeItem* parent, const T& p )
|
|||||||
parent->beginRowsRemoved( i, i );
|
parent->beginRowsRemoved( i, i );
|
||||||
parent->removeChild( pl );
|
parent->removeChild( pl );
|
||||||
parent->endRowsRemoved();
|
parent->endRowsRemoved();
|
||||||
|
|
||||||
|
delete pl;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user