Avoid stack overflow when destroying InternalClass
authorUlf Hermann <ulf.hermann@digia.com>
Thu, 6 Nov 2014 13:40:37 +0000 (14:40 +0100)
committerUlf Hermann <ulf.hermann@digia.com>
Thu, 6 Nov 2014 16:52:26 +0000 (17:52 +0100)
commita4877338826381d454dfdae74242a007b3aac9e0
treed62e0d19b36fd463b11ea5b11cadac59375fbc74
parent61dd293a145a3881c6ff4a223121f655f1f8d0bc
Avoid stack overflow when destroying InternalClass

If there are deep object hierarchies connected to an InternalClass the
recursive nature of the destroy() method could lead to a stack
overflow. By changing the recursion into an iteration this is avoided.

Change-Id: I6667f268a366749c2dbc5f7147882388f192a9c5
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
src/qml/jsruntime/qv4internalclass.cpp