Fix accessing pixmapCache after it is deleted
BUG: 275570 FIXED-IN: 4.7.1
This commit is contained in:
parent
44815f6ae0
commit
d5d5ba688f
@ -310,11 +310,13 @@ void ThemePrivate::discardCache(CacheTypes caches)
|
|||||||
|
|
||||||
void ThemePrivate::scheduledCacheUpdate()
|
void ThemePrivate::scheduledCacheUpdate()
|
||||||
{
|
{
|
||||||
|
if (useCache()) {
|
||||||
QHashIterator<QString, QPixmap> it(pixmapsToCache);
|
QHashIterator<QString, QPixmap> it(pixmapsToCache);
|
||||||
while (it.hasNext()) {
|
while (it.hasNext()) {
|
||||||
it.next();
|
it.next();
|
||||||
pixmapCache->insertPixmap(idsToCache[it.key()], it.value());
|
pixmapCache->insertPixmap(idsToCache[it.key()], it.value());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
pixmapsToCache.clear();
|
pixmapsToCache.clear();
|
||||||
keysToCache.clear();
|
keysToCache.clear();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user