summaryrefslogtreecommitdiffstats
path: root/src/gui/image
diff options
context:
space:
mode:
authorDavid Faure <faure@kde.org>2009-10-19 11:24:21 (GMT)
committerAlexis Menard <alexis.menard@nokia.com>2009-10-19 11:25:28 (GMT)
commitf9e46cdb2d9a42d52f90fe50a53a76c03065b9ce (patch)
tree69aac0fc1fc37f2acc6a5ec56d52d2aafb3f7814 /src/gui/image
parent2e575432f1e1fd90e1f973791f2ee8df33b6e45e (diff)
downloadQt-f9e46cdb2d9a42d52f90fe50a53a76c03065b9ce.zip
Qt-f9e46cdb2d9a42d52f90fe50a53a76c03065b9ce.tar.gz
Qt-f9e46cdb2d9a42d52f90fe50a53a76c03065b9ce.tar.bz2
Fix crash in QPixmapCache.
QCache destruction accesses the key array that was freed in the QPixmapCache destruction, so better clear() before deleting that key. Merge-request: 1820 Reviewed-by: Alexis Menard <alexis.menard@nokia.com>
Diffstat (limited to 'src/gui/image')
-rw-r--r--src/gui/image/qpixmapcache.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/image/qpixmapcache.cpp b/src/gui/image/qpixmapcache.cpp
index f12d397..b0b7d72 100644
--- a/src/gui/image/qpixmapcache.cpp
+++ b/src/gui/image/qpixmapcache.cpp
@@ -221,6 +221,7 @@ QPMCache::QPMCache()
}
QPMCache::~QPMCache()
{
+ clear();
free(keyArray);
}