diff options
author | Lars Knoll <lars.knoll@digia.com> | 2013-05-08 15:04:25 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2013-05-08 15:35:40 +0200 |
commit | ae2e35e3d87edd011f77edfc24497bb570bc3097 (patch) | |
tree | 390dd759293a8bb3d731c94e4a8d99bb2f1c0de6 /src/qml/qml/qqmlvmemetaobject.cpp | |
parent | 4a263bde7511a41b57d32c1073f5213f6015c3dd (diff) |
Remove the remaining traces of v8::persistent
Change-Id: Id542914c64558c1eba30a300cb10606fa499e594
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/qml/qqmlvmemetaobject.cpp')
-rw-r--r-- | src/qml/qml/qqmlvmemetaobject.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/qml/qml/qqmlvmemetaobject.cpp b/src/qml/qml/qqmlvmemetaobject.cpp index 69a7b1a0d9..70fcb1b925 100644 --- a/src/qml/qml/qqmlvmemetaobject.cpp +++ b/src/qml/qml/qqmlvmemetaobject.cpp @@ -1238,11 +1238,12 @@ void QQmlVMEMetaObject::allocateVarPropertiesArray() is cleared as a result of all other handles to that v8object being released. See QV8GCCallback::garbageCollectorPrologueCallback() for more information. */ -void QQmlVMEMetaObject::VarPropertiesWeakReferenceCallback(v8::Persistent<v8::Value> object, void* parameter) +void QQmlVMEMetaObject::VarPropertiesWeakReferenceCallback(QV4::PersistentValue &object, void* parameter) { + // ### FIXME QQmlVMEMetaObject *vmemo = static_cast<QQmlVMEMetaObject*>(parameter); Q_ASSERT(vmemo); - qPersistentDispose(object); + object.clear(); vmemo->varProperties.clear(); } |