Fix memory corruption in qjsvalueprivate
authorLars Knoll <lars.knoll@digia.com>
Mon, 17 Jun 2013 11:35:07 +0000 (13:35 +0200)
committerSimon Hausmann <simon.hausmann@digia.com>
Mon, 17 Jun 2013 11:37:47 +0000 (13:37 +0200)
commit3436b58928b52c1cef643202969159324b8f0850
treeba7a4ade72799ac7158f78e0d5af97f4330f205d
parent227f7ed60cfb34f7c3d91b27b07ddc5bbd1a2922
Fix memory corruption in qjsvalueprivate

When converting to a memory managed string, we need to add
the PersistentValuePrivate to the chain of persistent objects.
Otherwise the string stored in the JSValue can get garbage
collected.

Change-Id: I159fd77a7ae6f29e4121969cac962bd12b0f9bc7
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
src/qml/qml/v8/qjsvalue.cpp
src/qml/qml/v8/qjsvalue_p.h