Better make InternalClass::addMember() safe
authorLars Knoll <lars.knoll@digia.com>
Sun, 5 May 2013 20:08:52 +0000 (22:08 +0200)
committerSimon Hausmann <simon.hausmann@digia.com>
Sun, 5 May 2013 20:17:01 +0000 (22:17 +0200)
commit92396e11dc810c542fcfd0c60f7949760fe21bac
treeceaf820d17f2989592ceca88ab6c64fec3eb4281
parent84ec47743d110a9e857a6a8ae56dc8734792d8aa
Better make InternalClass::addMember() safe

The method should not get called repeatedly with the same member,
but currently this still happens (esp. as we have the v4 engine in TLS),
so let's make the call safe.

Change-Id: Icc3bce48af67f77c7b64040685b1c861c23f5b8d
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
src/qml/qml/v4/qv4internalclass.cpp