mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-29 05:48:47 +03:00
Call qDeleteAll on m_pathList
This commit is contained in:
parent
8f40f41fef
commit
23b2f94c40
1 changed files with 3 additions and 1 deletions
|
@ -61,7 +61,9 @@ ScanFoldersModel::ScanFoldersModel(QObject *parent) :
|
|||
QAbstractTableModel(parent), m_fsWatcher(0)
|
||||
{ }
|
||||
|
||||
ScanFoldersModel::~ScanFoldersModel() { }
|
||||
ScanFoldersModel::~ScanFoldersModel() {
|
||||
qDeleteAll(m_pathList);
|
||||
}
|
||||
|
||||
int ScanFoldersModel::rowCount(const QModelIndex &parent) const {
|
||||
return parent.isValid() ? 0 : m_pathList.count();
|
||||
|
|
Loading…
Reference in a new issue