diff options
author | Stephen Kelly <stephen.kelly@kdab.com> | 2013-09-17 10:32:38 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-17 14:05:21 +0200 |
commit | 39baade30450302dcf06bcda3b9166b5103ff8db (patch) | |
tree | 79b34c1190edce7f4aa90cd601cd7cb1f9168a17 /src/corelib/kernel/qvariant.h | |
parent | 2af188c6d06af7dffbcb7b15f96fe7e188558624 (diff) |
MetaType: Fix memory leak of QAtomicInt.
Change-Id: I04c87c4caeb96c820c4d332a803cb2824fea5891
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Diffstat (limited to 'src/corelib/kernel/qvariant.h')
-rw-r--r-- | src/corelib/kernel/qvariant.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/corelib/kernel/qvariant.h b/src/corelib/kernel/qvariant.h index d9aaf0c1f5..1f35850043 100644 --- a/src/corelib/kernel/qvariant.h +++ b/src/corelib/kernel/qvariant.h @@ -594,6 +594,7 @@ public: inline ~const_iterator() { if (!ref->deref()) { m_impl.destroyIter(); + delete ref; } } @@ -663,6 +664,7 @@ public: inline ~const_iterator() { if (!ref->deref()) { m_impl.destroyIter(); + delete ref; } } inline const_iterator(const const_iterator &other) : m_impl(other.m_impl), ref(other.ref) { |