1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-20 07:49:42 +01:00

Delete all AccountModelNodes to prevent leak

This commit is contained in:
Uwe L. Korn 2014-09-29 11:11:20 +01:00
parent 49637db016
commit da8acbb39a
2 changed files with 7 additions and 0 deletions

View File

@ -49,6 +49,12 @@ AccountModel::AccountModel( QObject* parent )
}
AccountModel::~AccountModel()
{
qDeleteAll( m_accounts );
}
void
AccountModel::init()
{

View File

@ -86,6 +86,7 @@ public:
};
explicit AccountModel( QObject* parent = 0 );
virtual ~AccountModel();
virtual QVariant data( const QModelIndex& index, int role = Qt::DisplayRole ) const;
virtual int rowCount( const QModelIndex& parent = QModelIndex() ) const;