Commit 87911c6c97b11bd7d10a38698460174b6cadfbe8

Fix a leak because of an old legacy of QPixmapCache string API

We have to replace the pixmap in the cache if it was previously there,
we don't need to insert a new pixmap if a full update has been
triggered.

Reviewed-by:mbm
src/gui/graphicsview/qgraphicsscene.cpp
(1 / 4)
  
47594759 }
47604760
47614761 // Find pixmap in cache.
4762 if (!itemCache->allExposed)
4763 pixmapFound = QPixmapCache::find(pixmapKey, &pix);
4764 else
4765 pixmapFound = false;
4762 pixmapFound = QPixmapCache::find(pixmapKey, &pix);
47664763
47674764 // Render using item coordinate cache mode.
47684765 if (cacheMode == QGraphicsItem::ItemCoordinateCache) {

Comments

Add a new comment:

Login or create an account to post a comment

Add your comment