Skip to content

Commit

Permalink
TWK-441: Try to fix crash where sourcetreeitem would hold on to a dan…
Browse files Browse the repository at this point in the history
…gling parent
  • Loading branch information
lfranchi committed Aug 26, 2011
1 parent 597fec4 commit 3fa9fa3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/sourcetree/items/collectionitem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,8 @@ CollectionItem::playlistDeletedInternal( SourceTreeItem* parent, const T& p )
parent->beginRowsRemoved( i, i );
parent->removeChild( pl );
parent->endRowsRemoved();

delete pl;
break;
}
}
Expand Down

0 comments on commit 3fa9fa3

Please sign in to comment.