diff options
Diffstat (limited to 'src/qml/qml/v4/qv4mm.cpp')
-rw-r--r-- | src/qml/qml/v4/qv4mm.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/qml/v4/qv4mm.cpp b/src/qml/qml/v4/qv4mm.cpp index aca838a515..fcc660e3db 100644 --- a/src/qml/qml/v4/qv4mm.cpp +++ b/src/qml/qml/v4/qv4mm.cpp @@ -303,14 +303,14 @@ void MemoryManager::mark() QObject *qobject = qobjectWrapper->object; if (!qobject) continue; - bool keepAlive = QQmlEngine::objectOwnership(qobject) == QQmlEngine::CppOwnership; + bool keepAlive = QQmlData::keepAliveDuringGarbageCollection(qobject); if (!keepAlive) { if (QObject *parent = qobject->parent()) { while (parent->parent()) parent = parent->parent(); - keepAlive = QQmlEngine::objectOwnership(parent) == QQmlEngine::CppOwnership; + keepAlive = QQmlData::keepAliveDuringGarbageCollection(parent); } } |