Fix possible crash in TorrentContentModel

This commit is contained in:
Christophe Dumez
2012-03-07 08:21:01 -08:00
parent 85167c9043
commit 3389820c73

View File

@@ -252,7 +252,6 @@ void TorrentContentModel::clear()
{
qDebug("clear called");
beginResetModel();
qDeleteAll(m_filesIndex);
m_filesIndex.clear();
m_rootItem->deleteAllChildren();
endResetModel();