aboutsummaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qdeclarativepropertycache_p.h
diff options
context:
space:
mode:
authorAndrew den Exter <andrew.den-exter@nokia.com>2011-12-19 13:10:06 +1000
committerQt by Nokia <qt-info@nokia.com>2011-12-20 05:40:33 +0100
commit901bdf833cff3db5ef152c3539096b4a7f1de95b (patch)
tree5ef79bb716f786e2b55761420997504cec022bba /src/declarative/qml/qdeclarativepropertycache_p.h
parentf217b776c8a41ea93e3b25a4009573bb94344ac2 (diff)
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>
Diffstat (limited to 'src/declarative/qml/qdeclarativepropertycache_p.h')
-rw-r--r--src/declarative/qml/qdeclarativepropertycache_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/declarative/qml/qdeclarativepropertycache_p.h b/src/declarative/qml/qdeclarativepropertycache_p.h
index 3deafdf9c5..746c1fe8e8 100644
--- a/src/declarative/qml/qdeclarativepropertycache_p.h
+++ b/src/declarative/qml/qdeclarativepropertycache_p.h
@@ -272,6 +272,7 @@ private:
QDeclarativePropertyCache *parent;
int propertyIndexCacheStart;
int methodIndexCacheStart;
+ int signalHanderIndexCacheStart;
IndexCache propertyIndexCache;
IndexCache methodIndexCache;