Browse Source

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

Fix a memleak in torrentmodel.
adaptive-webui-19844
sledgehammer999 10 years ago
parent
commit
d62498b48c
  1. 1
      src/qtlibtorrent/torrentmodel.cpp

1
src/qtlibtorrent/torrentmodel.cpp

@ -432,6 +432,7 @@ void TorrentModel::removeTorrent(const QString &hash) @@ -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();
}

Loading…
Cancel
Save