Skip to content

Fix crash when deleting entry

Alexander Lohnau requested to merge work/fix_crash_when_deleting into master

The SearchProviderRegistry is a class variable and in its deconstructor all the providers are deleted.

SearchProviderRegistry::~SearchProviderRegistry()
{
    qDeleteAll(m_searchProviders);
}
[KCrash Handler]
#4  0x00007f1afe1230cb in qDeleteAll<QList<SearchProvider*>::const_iterator> (begin=..., end=...) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qalgorithms.h:320
#5  0x00007f1afe122cb2 in qDeleteAll<QList<SearchProvider*> > (c=...) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qalgorithms.h:328

If you delete a provider in the GUI it is still in the list of search providers which will be deleted.

BUG: 402294

BUG: 412774

@ngraham @dfaure

Merge request reports

Loading