Don't put JavaScript-owned objects on the stack.
authorThomas McGuire <thomas.mcguire.qnx@kdab.com>
Mon, 13 Aug 2012 13:48:44 +0000 (15:48 +0200)
committerQt by Nokia <qt-info@nokia.com>
Fri, 24 Aug 2012 09:30:49 +0000 (11:30 +0200)
commitf1422adb3e71fd9c32b65fa0b9d3f076ed0ccfbb
tree6d29e100fc6896defbf4836fff20c0d386dff8be
parent8f893d1d675b09d0a5f2add1df7a9970bb3cb227
Don't put JavaScript-owned objects on the stack.

Only the fact that the object wrapper uses deleteLater() instead of
delete made this not crash.

Change-Id: I034d8c7f24b963be9e031446ffdfa33e6bc266cc
Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
Reviewed-by: Chris Adams <christopher.adams@nokia.com>
tests/auto/qml/qjsengine/tst_qjsengine.cpp
tests/auto/qml/qjsvalue/tst_qjsvalue.cpp
tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp