Fix leakage of internal class hierarchy
authorSimon Hausmann <simon.hausmann@digia.com>
Mon, 6 May 2013 11:29:24 +0000 (13:29 +0200)
committerLars Knoll <lars.knoll@digia.com>
Mon, 6 May 2013 12:49:15 +0000 (14:49 +0200)
commita56a22835d63bb6017d996bd63989b6861259b88
treebb822ace69c0fa611b94fa5c5d8b8c35d0795cb6
parent678417bd473b68834747684edb6fd2b9628050b9
Fix leakage of internal class hierarchy

Allocate the InternalClass instances in a memory pool and delete them
all in one shot at the end. The memory pool won't call the destructor,
so we have to introduce our own recursive destroy() method, that will
free the memory allocated.

Change-Id: I507a893475181f765acf545b5cd2bfccc8c29747
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/qml/qml/v4/qv4engine.cpp
src/qml/qml/v4/qv4engine_p.h
src/qml/qml/v4/qv4internalclass.cpp
src/qml/qml/v4/qv4internalclass_p.h