Fix accessing pixmapCache after it is deleted
BUG: 275570 FIXED-IN: 4.7.1 (cherry picked from commit f5b095fdaaae164ef04dd46dfb4fb97a8aa87768)
This commit is contained in:
parent
ec464cf19a
commit
25869b4e9d
10
theme.cpp
10
theme.cpp
@ -310,10 +310,12 @@ void ThemePrivate::discardCache(CacheTypes caches)
|
|||||||
|
|
||||||
void ThemePrivate::scheduledCacheUpdate()
|
void ThemePrivate::scheduledCacheUpdate()
|
||||||
{
|
{
|
||||||
QHashIterator<QString, QPixmap> it(pixmapsToCache);
|
if (useCache()) {
|
||||||
while (it.hasNext()) {
|
QHashIterator<QString, QPixmap> it(pixmapsToCache);
|
||||||
it.next();
|
while (it.hasNext()) {
|
||||||
pixmapCache->insertPixmap(idsToCache[it.key()], it.value());
|
it.next();
|
||||||
|
pixmapCache->insertPixmap(idsToCache[it.key()], it.value());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pixmapsToCache.clear();
|
pixmapsToCache.clear();
|
||||||
|
Loading…
Reference in New Issue
Block a user