Remove default parenting in Qt.createComponent()
authorMatthew Vogt <matthew.vogt@nokia.com>
Wed, 23 May 2012 06:12:44 +0000 (16:12 +1000)
committerQt by Nokia <qt-info@nokia.com>
Wed, 23 May 2012 22:23:43 +0000 (00:23 +0200)
commite574e9adcac1244db5c828575553a63ccbdd28b9
tree3e8c67e065500ceb63d5ce26cb79b0eebcc65a5d
parent1fa25f48b040f4e08a04f92f9b3a534d6e0fd106
Remove default parenting in Qt.createComponent()

Remove the default parent applied to component instances created by
Qt.createComponent().  This allows these objects to be managed by usual
JS reference management, and thus to be appropriately garbage
collected.

Task-number: QTBUG-24841
Change-Id: I29efbb9d8f5a2ef4c74415399fa3024e6590004b
Reviewed-by: Chris Adams <christopher.adams@nokia.com>
src/qml/qml/v8/qqmlbuiltinfunctions.cpp
tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp