1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-10 14:57:52 +00:00

Call qDeleteAll on m_pathList

This commit is contained in:
Christophe Dumez 2010-02-28 16:23:59 +00:00
parent 8f40f41fef
commit 23b2f94c40

View File

@ -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();