1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-21 00:09:47 +01:00

TWK-441: Try to fix crash where sourcetreeitem would hold on to a dangling parent

This commit is contained in:
Leo Franchi 2011-08-25 23:35:08 -04:00
parent 597fec4982
commit 3fa9fa337e

View File

@ -236,6 +236,8 @@ CollectionItem::playlistDeletedInternal( SourceTreeItem* parent, const T& p )
parent->beginRowsRemoved( i, i );
parent->removeChild( pl );
parent->endRowsRemoved();
delete pl;
break;
}
}