Fix QDeclarativePropertyCache crash.
authorAndrew den Exter <andrew.den-exter@nokia.com>
Mon, 19 Dec 2011 03:10:06 +0000 (13:10 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 20 Dec 2011 04:40:33 +0000 (05:40 +0100)
commit901bdf833cff3db5ef152c3539096b4a7f1de95b
tree5ef79bb716f786e2b55761420997504cec022bba
parentf217b776c8a41ea93e3b25a4009573bb94344ac2
Fix QDeclarativePropertyCache crash.

Reserve enough space in the signalHandlerIndexCache so that it will
not reallocated while the property cache is being built as this will
invalidate the pointers stored in the stringCache.  Also ensure
signals for all cached meta-objects are included in
signalHandlerIndexCache, and don't over allocate propertyIndexCache
and methodIndexCache.

Change-Id: Ic285d832d4b86106176bfe723ff10bdd65143910
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
src/declarative/qml/qdeclarativepropertycache.cpp
src/declarative/qml/qdeclarativepropertycache_p.h
tests/auto/declarative/qdeclarativepropertycache/qdeclarativepropertycache.pro [new file with mode: 0644]
tests/auto/declarative/qdeclarativepropertycache/tst_qdeclarativepropertycache.cpp [new file with mode: 0644]