From a8e54e15e13653290ca4a49a38fae742e3825d04 Mon Sep 17 00:00:00 2001 From: David Rosca Date: Fri, 19 Feb 2016 13:25:26 +0100 Subject: [PATCH] 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 --- src/plasma/private/theme_p.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plasma/private/theme_p.cpp b/src/plasma/private/theme_p.cpp index 2faced8b6..fb91ac5e2 100644 --- a/src/plasma/private/theme_p.cpp +++ b/src/plasma/private/theme_p.cpp @@ -335,7 +335,7 @@ void ThemePrivate::discardCache(CacheTypes caches) discoveries.clear(); invalidElements.clear(); - svgElementsCache = 0; + svgElementsCache->reparseConfiguration(); } }