Commit 592178a8 authored by Jeremy Whiting's avatar Jeremy Whiting
Browse files

BUG: 277323

Fix crash in knewstuff3 when config file is not found.
Thanks to Tautvydas Andrikys for the bug and fix.
parent 12c1ec51
......@@ -73,6 +73,7 @@ Engine::Engine(QObject* parent)
, m_numPictureJobs(0)
, m_numInstallJobs(0)
, m_atticaProviderManager(0)
, m_cache(0)
{
m_searchTimer->setSingleShot(true);
m_searchTimer->setInterval(1000);
......@@ -84,7 +85,9 @@ Engine::Engine(QObject* parent)
Engine::~Engine()
{
m_cache->writeRegistry();
if (m_cache) {
m_cache->writeRegistry();
}
delete m_atticaProviderManager;
delete m_searchTimer;
delete m_installation;
......
Supports Markdown
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