mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 11:20:22 +02:00
Delete all AccountModelNodes to prevent leak
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user