[new compiler] Fix tst_qqmlqt::createComponent
authorSimon Hausmann <simon.hausmann@digia.com>
Thu, 27 Feb 2014 07:41:26 +0000 (08:41 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Sun, 2 Mar 2014 16:11:12 +0000 (17:11 +0100)
commitcd17b8a2a1f91d46ea3830171621928862609dd4
tree39a928ef32db8098f8b8b83d6b897e57f29b3f42
parent6f6f822dfc4180264a4de1e98d3411a964570aa3
[new compiler] Fix tst_qqmlqt::createComponent

Initialize the binding's self-pointer before calling addObject(), as some funky tests
try to delete the binding from within there and the self-pointer allows us to find out
later that the binding was deleted.

Change-Id: I8c9e3fe7304f304eace29c0631263b1ec021a8c4
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/qml/qml/qqmlobjectcreator.cpp