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:
parent
49637db016
commit
da8acbb39a
@ -49,6 +49,12 @@ AccountModel::AccountModel( QObject* parent )
|
||||
}
|
||||
|
||||
|
||||
AccountModel::~AccountModel()
|
||||
{
|
||||
qDeleteAll( m_accounts );
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
AccountModel::init()
|
||||
{
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user