Merge pull request #2106 from sorokin/fix-memleak-in-torrentmodel

Fix a memleak in torrentmodel.
This commit is contained in:
sledgehammer999 2014-11-02 16:43:04 +02:00
commit d62498b48c

View file

@ -432,6 +432,7 @@ void TorrentModel::removeTorrent(const QString &hash)
qDebug() << Q_FUNC_INFO << hash << row;
if (row >= 0) {
beginRemoveTorrent(row);
delete m_torrents[row];
m_torrents.removeAt(row);
endRemoveTorrent();
}