Ensure that variant property references keep QObjects alive
authorChris Adams <christopher.adams@nokia.com>
Wed, 14 Mar 2012 02:00:40 +0000 (12:00 +1000)
committerQt by Nokia <qt-info@nokia.com>
Wed, 30 May 2012 02:37:59 +0000 (04:37 +0200)
commit47eb68ab0b8d9ffd357cbad2f74b63ee2cf00dad
tree5159737869c7b8981003ed519b8cd8541799728e
parent7f8c243dec987018db47547c6ddea9cd8272e02a
Ensure that variant property references keep QObjects alive

Previously, only var property references could keep QObjects alive.
This meant that the garbage collector would collect QObject data
prematurely.

This commit ensures that variant properties keep QObjects alive as
required.

Task-number: QTBUG-24767
Change-Id: Ic98a06863251a3e7d6384ba9256810a78fb23406
Reviewed-by: Martin Jones <martin.jones@nokia.com>
src/qml/qml/qqmlvmemetaobject.cpp
src/qml/qml/v8/qv8engine.cpp
tests/auto/qml/qqmlecmascript/data/HRMDPComponent.qml [new file with mode: 0644]
tests/auto/qml/qqmlecmascript/data/handleReferenceManagement.dynprop.2.qml [new file with mode: 0644]
tests/auto/qml/qqmlecmascript/data/handleReferenceManagement.dynprop.3.qml [new file with mode: 0644]
tests/auto/qml/qqmlecmascript/data/handleReferenceManagement.dynprop.qml [new file with mode: 0644]
tests/auto/qml/qqmlecmascript/data/handleReferenceManagement.handle.2.qml
tests/auto/qml/qqmlecmascript/data/signalEmitted.3.qml
tests/auto/qml/qqmlecmascript/data/signalEmitted.4.qml
tests/auto/qml/qqmlecmascript/testtypes.h
tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp