Commit 702f3e9f authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

qt: plugins: Fix memory leak

parent b836e445
......@@ -870,6 +870,11 @@ AddonsListModel::AddonsListModel( AddonsManager *AM_, QObject *parent )
}
AddonsListModel::~AddonsListModel()
{
qDeleteAll( addons );
}
void AddonsListModel::addonAdded( addon_entry_t *p_entry )
{
beginInsertRows( QModelIndex(), addons.count(), addons.count() );
......
......@@ -219,6 +219,7 @@ class AddonsListModel: public ExtensionListModel
public:
AddonsListModel( AddonsManager *AM, QObject *parent = 0 );
virtual ~AddonsListModel();
QVariant data( const QModelIndex& index, int role ) const Q_DECL_OVERRIDE;
QModelIndex index( int row, int column = 0,
const QModelIndex& = QModelIndex() ) const Q_DECL_OVERRIDE;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment