MetaType: Fix memory leak of QAtomicInt.

Change-Id: I04c87c4caeb96c820c4d332a803cb2824fea5891
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
bb10
Stephen Kelly 2013-09-17 10:32:38 +02:00 committed by The Qt Project
parent 2af188c6d0
commit 39baade304
1 changed files with 2 additions and 0 deletions

View File

@ -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) {