Reparse svgElementsCache instead of deleting it in discardCache

svgElementsCache may be created on render thread and deleted
on main thread, which will make KSharedConfig crash because
it uses per-thread storage.

BUG: 359539
REVIEW: 127112
This commit is contained in:
David Rosca 2016-02-19 13:25:26 +01:00
parent 82e172cc9e
commit a8e54e15e1

View File

@ -335,7 +335,7 @@ void ThemePrivate::discardCache(CacheTypes caches)
discoveries.clear();
invalidElements.clear();
svgElementsCache = 0;
svgElementsCache->reparseConfiguration();
}
}