destruct qobject wrappers before sweeping the GC heap
authorLars Knoll <lars.knoll@theqtcompany.com>
Fri, 7 Aug 2015 12:26:43 +0000 (14:26 +0200)
committerLars Knoll <lars.knoll@theqtcompany.com>
Mon, 10 Aug 2015 07:24:36 +0000 (07:24 +0000)
commitc1667cd7277cd48e26a97ea5d10d6bcab0ef576e
treeacb05c619ec15344ea5c2140ea16d5afe95fb3ad
parent415f55d1400f6abdd3a8e3edaf5ff208ecdad216
destruct qobject wrappers before sweeping the GC heap

The wrappers emit a destroyed signal, and it's important
that the GC heap is in a well defined state when these signals
are emitted.

Change-Id: I423c4241b1e2fd3de727277d26bbe64f08862193
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
src/qml/jsruntime/qv4managed_p.h
src/qml/jsruntime/qv4qobjectwrapper.cpp
src/qml/jsruntime/qv4qobjectwrapper_p.h
src/qml/memory/qv4mm.cpp
src/qml/memory/qv4mm_p.h