Fix missing object markings in QV4::Script
authorSimon Hausmann <simon.hausmann@digia.com>
Sat, 1 Jun 2013 13:08:17 +0000 (15:08 +0200)
committerLars Knoll <lars.knoll@digia.com>
Sun, 2 Jun 2013 13:13:39 +0000 (15:13 +0200)
commit9693bfc546a5ba40f1756d61eb41b0beccbf8432
treef4eb61cae5e6f4d555f914295ca50c5642134d5c
parentb32da633e09feeabc336efe54faa2a8c55b6abb4
Fix missing object markings in QV4::Script

Store the qml activation object as Persistent value, as the script object is
often stored on the heap. Also make sure to mark it in QmlBindingWrapper. Fixes
various valgrind errors in tst_qqmlecmascript.

Change-Id: I7edf1e18db0e6a5ab9dcbfd57e258d72fe62cd77
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/qml/qml/qqmlvme.cpp
src/qml/qml/v4/qv4script.cpp
src/qml/qml/v4/qv4script_p.h