Avoid rare crash
authorAlan Alpert <aalpert@blackberry.com>
Wed, 27 Mar 2013 21:08:28 +0000 (14:08 -0700)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Sat, 4 May 2013 04:26:14 +0000 (06:26 +0200)
commit209c87d2bc188ee0f5be6b9562593169740eaddb
tree016beaa0dda0968ac5293856e9361ac7797754a7
parentad5ae0d751e42a9ca6def5d98b2db740f195c16f
Avoid rare crash

In the case where a QML type had been registered with the same
metaobject, you could dereference the c++ type union data when it hadn't
been allocated.

Change-Id: I906d68710cf88b379933eb13cf0668738f07d5f4
Reviewed-by: Matthew Vogt <matthew.vogt@qinetic.com.au>
src/qml/qml/qqmlmetatype.cpp