diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-12-18 01:18:33 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-12-18 01:18:33 (GMT) |
commit | 1900bfc37d38806894db2eb1deace8aff200ed88 (patch) | |
tree | 4dd64a5e1c3ffdb297240c28dd967beb65490cc0 /src/corelib/tools/qcache.h | |
parent | 7f0b65bf04f96edf0d39547f499dea1746d69ba3 (diff) | |
parent | 0ad9f711969ddbf5995ddf2b7fcd5087698b93d1 (diff) | |
download | Qt-1900bfc37d38806894db2eb1deace8aff200ed88.zip Qt-1900bfc37d38806894db2eb1deace8aff200ed88.tar.gz Qt-1900bfc37d38806894db2eb1deace8aff200ed88.tar.bz2 |
Merge branch 'kinetic-declarativeui' of scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
Diffstat (limited to 'src/corelib/tools/qcache.h')
-rw-r--r-- | src/corelib/tools/qcache.h | 3 |
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); |