summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTrond Kjernåsen <trond@trolltech.com>2009-08-28 13:43:54 (GMT)
committerTrond Kjernåsen <trond@trolltech.com>2009-08-28 13:47:02 (GMT)
commit81303731b56a0a7e36673d6eae874e1d7fd95d6d (patch)
treea6ab51286d17c181edbca9f2f720a5e058ddcda9 /src
parent033725f5947d4a4e0c21f426664851b42b164d08 (diff)
downloadQt-81303731b56a0a7e36673d6eae874e1d7fd95d6d.zip
Qt-81303731b56a0a7e36673d6eae874e1d7fd95d6d.tar.gz
Qt-81303731b56a0a7e36673d6eae874e1d7fd95d6d.tar.bz2
Re-enabled the QPixmap cleanup hooks in QPixmap destructor.
Reviewed-by: Gunnar
Diffstat (limited to 'src')
-rw-r--r--src/gui/image/qpixmap.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/image/qpixmap.cpp b/src/gui/image/qpixmap.cpp
index 658b8e0..155474f 100644
--- a/src/gui/image/qpixmap.cpp
+++ b/src/gui/image/qpixmap.cpp
@@ -322,6 +322,8 @@ QPixmap::QPixmap(const char * const xpm[])
QPixmap::~QPixmap()
{
+ if (data->is_cached && data->ref == 1)
+ QImagePixmapCleanupHooks::executePixmapHooks(this);
}
/*!