summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qcache.h
diff options
context:
space:
mode:
authorMartin Smith <msmith@trolltech.com>2009-12-18 09:07:46 (GMT)
committerMartin Smith <msmith@trolltech.com>2009-12-18 09:07:46 (GMT)
commit0d212670c06ed54ac785e0bb945c792947d388f5 (patch)
treec4f6c6762ad42df463f30e05e090fa2cfa9de77a /src/corelib/tools/qcache.h
parent371420d5f31a04b91c01807139d49e97db040bee (diff)
parent7c1283fca1ef2e742b5794600e00edf0c3e3020f (diff)
downloadQt-0d212670c06ed54ac785e0bb945c792947d388f5.zip
Qt-0d212670c06ed54ac785e0bb945c792947d388f5.tar.gz
Qt-0d212670c06ed54ac785e0bb945c792947d388f5.tar.bz2
Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/oslo-staging-1 into 4.6
Diffstat (limited to 'src/corelib/tools/qcache.h')
-rw-r--r--src/corelib/tools/qcache.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/corelib/tools/qcache.h b/src/corelib/tools/qcache.h
index 46e20b1..66f9f73 100644
--- a/src/corelib/tools/qcache.h
+++ b/src/corelib/tools/qcache.h
@@ -70,8 +70,9 @@ class QCache
if (l == &n) l = n.p;
if (f == &n) f = n.n;
total -= n.c;
- delete n.t;
+ T *obj = n.t;
hash.remove(*n.keyPtr);
+ delete obj;
}
inline T *relink(const Key &key) {
typename QHash<Key, Node>::iterator i = hash.find(key);