Strengthen reference to var properties during construction
authorAlan Alpert <aalpert@rim.com>
Fri, 25 Jan 2013 01:31:41 +0000 (17:31 -0800)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 29 Jan 2013 18:18:04 +0000 (19:18 +0100)
commitd005c5c80b6fff835adb350a780d80348549bc64
treeebfebf0916884e6bb377c4883335b0bc93e87572
parent6327d2947162b54d0618353c015190a64706c318
Strengthen reference to var properties during construction

Normally var properties are kept alive by a reference to the object they
are declared on, but during the construction of that object the GC may
not be aware of said object. This change uses a strong reference during
GC passes which take place while the object is being constructed.

Task-number: QTBUG-29138
Change-Id: Ieecfcc7567aefac0d67cb933728daf16ed3eed0a
Reviewed-by: Christopher Adams <chris.adams@jollamobile.com>
src/qml/qml/v8/qv8engine.cpp