Immediatley delete QV8QObjectResource objects to reduce memory leaks
authorThomas McGuire <thomas.mcguire.qnx@kdab.com>
Tue, 14 Aug 2012 12:17:10 +0000 (14:17 +0200)
committerQt by Nokia <qt-info@nokia.com>
Fri, 24 Aug 2012 09:31:33 +0000 (11:31 +0200)
commita4573dd927991937751f1e56cc02f7946f4f182b
tree76b795ba8d09ec38e5803276320ad44ddd344269
parentf1422adb3e71fd9c32b65fa0b9d3f076ed0ccfbb
Immediatley delete QV8QObjectResource objects to reduce memory leaks

This reduces memory leaks when deleting the v8 engine.
Otherwise, the memory would only be reclaimed during a full GC run,
which might not happen at all.

Change-Id: Iac34bad1f2280adc530d3b3d7a074c5d022005a4
Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
Reviewed-by: Chris Adams <christopher.adams@nokia.com>
src/qml/qml/v8/qv8qobjectwrapper.cpp