diff --git a/svg.cpp b/svg.cpp index 6e0a93211..36834bc72 100644 --- a/svg.cpp +++ b/svg.cpp @@ -349,6 +349,10 @@ class SvgPrivate q, SLOT(colorsChanged())); } + localRectCache.clear(); + itemsToSave.clear(); + saveTimer->stop(); + //kDebug() << themePath << ">>>>>>>>>>>>>>>>>> theme changed"; emit q->repaintNeeded(); } diff --git a/theme.cpp b/theme.cpp index b7a4ba8fb..2080a5e04 100644 --- a/theme.cpp +++ b/theme.cpp @@ -186,7 +186,6 @@ void ThemePrivate::discardCache() KPixmapCache::deleteCache("plasma_theme_" + themeName); - delete svgElementsCache; svgElementsCache = 0; QString svgElementsFile = KStandardDirs::locateLocal("cache", "plasma-svgelements-" + themeName);