diff options
author | Trond Kjernåsen <trond@trolltech.com> | 2009-08-28 13:43:54 (GMT) |
---|---|---|
committer | Trond Kjernåsen <trond@trolltech.com> | 2009-08-28 13:47:02 (GMT) |
commit | 81303731b56a0a7e36673d6eae874e1d7fd95d6d (patch) | |
tree | a6ab51286d17c181edbca9f2f720a5e058ddcda9 | |
parent | 033725f5947d4a4e0c21f426664851b42b164d08 (diff) | |
download | Qt-81303731b56a0a7e36673d6eae874e1d7fd95d6d.zip Qt-81303731b56a0a7e36673d6eae874e1d7fd95d6d.tar.gz Qt-81303731b56a0a7e36673d6eae874e1d7fd95d6d.tar.bz2 |
Re-enabled the QPixmap cleanup hooks in QPixmap destructor.
Reviewed-by: Gunnar
-rw-r--r-- | src/gui/image/qpixmap.cpp | 2 |
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); } /*! |