diff --git a/src/qtlibtorrent/torrentmodel.cpp b/src/qtlibtorrent/torrentmodel.cpp index 0f4f87e33..b48bc782e 100644 --- a/src/qtlibtorrent/torrentmodel.cpp +++ b/src/qtlibtorrent/torrentmodel.cpp @@ -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(); }