mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 13:23:34 -07:00
Merge pull request #2106 from sorokin/fix-memleak-in-torrentmodel
Fix a memleak in torrentmodel.
This commit is contained in:
commit
d62498b48c
1 changed files with 1 additions and 0 deletions
|
@ -432,6 +432,7 @@ void TorrentModel::removeTorrent(const QString &hash)
|
||||||
qDebug() << Q_FUNC_INFO << hash << row;
|
qDebug() << Q_FUNC_INFO << hash << row;
|
||||||
if (row >= 0) {
|
if (row >= 0) {
|
||||||
beginRemoveTorrent(row);
|
beginRemoveTorrent(row);
|
||||||
|
delete m_torrents[row];
|
||||||
m_torrents.removeAt(row);
|
m_torrents.removeAt(row);
|
||||||
endRemoveTorrent();
|
endRemoveTorrent();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue