summaryrefslogtreecommitdiffstats
path: root/src/gui/image
diff options
context:
space:
mode:
authorTom Cooksey <thomas.cooksey@nokia.com>2009-10-14 12:25:09 (GMT)
committerTom Cooksey <thomas.cooksey@nokia.com>2009-10-19 12:56:40 (GMT)
commit8e6c1d52ed9c233e753fc93bec93c8d909c95002 (patch)
treeabbc14ade90de1eb8b5ed3cc6544b9593dd1a471 /src/gui/image
parent0d0cba294980c5fbb26a2fd3e930c94606e93d03 (diff)
downloadQt-8e6c1d52ed9c233e753fc93bec93c8d909c95002.zip
Qt-8e6c1d52ed9c233e753fc93bec93c8d909c95002.tar.gz
Qt-8e6c1d52ed9c233e753fc93bec93c8d909c95002.tar.bz2
Add an assert testing the cleanup hooks exist before executing them
Reviewed-By: TrustMe
Diffstat (limited to 'src/gui/image')
-rw-r--r--src/gui/image/qimagepixmapcleanuphooks.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/image/qimagepixmapcleanuphooks.cpp b/src/gui/image/qimagepixmapcleanuphooks.cpp
index 138eb0d..ac30646 100644
--- a/src/gui/image/qimagepixmapcleanuphooks.cpp
+++ b/src/gui/image/qimagepixmapcleanuphooks.cpp
@@ -124,6 +124,7 @@ void QImagePixmapCleanupHooks::executePixmapDestructionHooks(QPixmap* pm)
void QImagePixmapCleanupHooks::executeImageHooks(qint64 key)
{
+ Q_ASSERT(qt_image_and_pixmap_cleanup_hooks);
for (int i = 0; i < qt_image_and_pixmap_cleanup_hooks->imageHooks.count(); ++i)
qt_image_and_pixmap_cleanup_hooks->imageHooks[i](key);