Commit ea58ef80 authored by David Edmundson's avatar David Edmundson
Browse files

Don't delete a QObject from inside a slot.

If there are any pending calls to that object to be processed deleting
the object can cause them to crash. (such as in KTp's service)

Using deleteLater() is safer.

BUG: 325376
REVIEW: 113128
parent 4a719dc3
......@@ -114,7 +114,7 @@ void Nepomuk2::ServiceControl::start()
void Nepomuk2::ServiceControl::shutdown()
{
delete m_nepomukServiceModule;
m_nepomukServiceModule->deleteLater();
m_nepomukServiceModule = 0;
}
......
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