[new compiler] Fix memory management of newly created objects
authorSimon Hausmann <simon.hausmann@digia.com>
Thu, 6 Feb 2014 15:23:34 +0000 (16:23 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 7 Feb 2014 11:44:05 +0000 (12:44 +0100)
commitd5a96399cec189251d8ee3e82493aceec112fbd8
treef87f262ff0e0a34744a7eea335ab09fe9c5bbec7
parent85bab8c8dbe385520753bc77f36b8115be5a046e
[new compiler] Fix memory management of newly created objects

It may happen that QML created objects get garbage collected, as they'll
be initially JS owned. We don't want that to happen, so we have to
protect them, similar to the qmlBindingWrappers array in the VME.

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