summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/corelib/kernel/qvariant.h2
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) {