Delete weak JS objects on exit right away
authorThomas McGuire <thomas.mcguire.qnx@kdab.com>
Tue, 14 Aug 2012 12:19:09 +0000 (14:19 +0200)
committerQt by Nokia <qt-info@nokia.com>
Fri, 31 Aug 2012 12:33:01 +0000 (14:33 +0200)
commit5e428bb926e0ad4df8ddd672d38b73f5859cbfd5
tree1dd658c50d171aeafdcbcff76b7c48a0c709c98b
parent04774bb14c81688f86a2b31b8624bde8ebf59062
Delete weak JS objects on exit right away

This reduces memory leaks on exit when the engine is destroyed
after exec() has finished.

Change-Id: I917d103966d55b4dd3ba4e986ff902e29d8fb0ac
Reviewed-by: Chris Adams <christopher.adams@nokia.com>
Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
src/qml/qml/v8/qv8qobjectwrapper.cpp
tests/auto/qml/qqmlecmascript/data/jsOwnedObjectsDeletedOnEngineDestroy.qml [new file with mode: 0644]
tests/auto/qml/qqmlecmascript/testtypes.h
tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp