aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/memory
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@qt.io>2016-10-13 14:39:47 +0200
committerSimon Hausmann <simon.hausmann@qt.io>2016-10-13 14:40:30 +0200
commit042640042491106a2f5cbb6a93bbf8c0cade0b9d (patch)
tree259e412414fc86508b4c066a928d7b01c3d3a0b6 /src/qml/memory
parent6df6c10e1af827d06a387e7422176dd310cf83be (diff)
parentf720242419cd73529277173e43e9f7a8ed367ad3 (diff)
Merge remote-tracking branch 'origin/5.6' into 5.8
Diffstat (limited to 'src/qml/memory')
-rw-r--r--src/qml/memory/qv4mm.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/memory/qv4mm.cpp b/src/qml/memory/qv4mm.cpp
index edb02466ef..6ef2380561 100644
--- a/src/qml/memory/qv4mm.cpp
+++ b/src/qml/memory/qv4mm.cpp
@@ -484,7 +484,7 @@ void MemoryManager::sweep(bool lastSweep)
remainingWeakQObjectWrappers.reserve(pendingCount);
for (int i = 0; i < pendingCount; ++i) {
Value *v = m_pendingFreedObjectWrapperValue.at(i);
- if (v->tag() == Value::Undefined_Type)
+ if (v->isUndefined() || v->isEmpty())
PersistentValueStorage::free(v);
else
remainingWeakQObjectWrappers.append(v);