summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorSarah Smith <sarah.j.smith@nokia.com>2009-12-08 05:36:41 (GMT)
committerSarah Smith <sarah.j.smith@nokia.com>2009-12-08 05:36:41 (GMT)
commitaf9304af3c462e120373f864d637e9c1db0787e2 (patch)
tree7cb4d19e9fc1544b630ac25fe0e79bfafbfb205d /src/gui
parent81e59890200349faa6aad4ba988257c6e2d63319 (diff)
downloadQt-af9304af3c462e120373f864d637e9c1db0787e2.zip
Qt-af9304af3c462e120373f864d637e9c1db0787e2.tar.gz
Qt-af9304af3c462e120373f864d637e9c1db0787e2.tar.bz2
Fix cleanup hooks error.
Trying to fix QTBUG-6563, getting crash from cut-n-paste slippage, now fixed. Task-number: QTBUG-6563 Reviewed-by: Rhys Weatherley
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/image/qimagepixmapcleanuphooks.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/image/qimagepixmapcleanuphooks.cpp b/src/gui/image/qimagepixmapcleanuphooks.cpp
index e411cd1..2aa61b8 100644
--- a/src/gui/image/qimagepixmapcleanuphooks.cpp
+++ b/src/gui/image/qimagepixmapcleanuphooks.cpp
@@ -106,8 +106,8 @@ void QImagePixmapCleanupHooks::executePixmapModificationHooks(QPixmap* pm)
void QImagePixmapCleanupHooks::executePixmapDestructionHooks(QPixmap* pm)
{
QImagePixmapCleanupHooks *h = qt_image_and_pixmap_cleanup_hooks();
- for (int i = 0; i < h->pixmapModificationHooks.count(); ++i)
- qt_image_and_pixmap_cleanup_hooks()->pixmapDestructionHooks[i](pm);
+ for (int i = 0; i < h->pixmapDestructionHooks.count(); ++i)
+ h->pixmapDestructionHooks[i](pm);
if (qt_pixmap_cleanup_hook_64)
qt_pixmap_cleanup_hook_64(pm->cacheKey());