aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2013-11-12 12:17:14 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-11-12 18:20:30 +0100
commitaf0a47de7ae093109e51db78976251040a668be0 (patch)
tree72e23709a47ec6c15224d1ae35c90358d7d21ec5 /src/qml/jsruntime
parente353d9e9fab71fd734b5f69bb39febed826abb9b (diff)
Fix Object::getArrayHeadRoom()
The method didn't adjust the size of the allocated array properly, leading to crashes when being called repeatedly. Task-number: QTBUG-34723 Change-Id: Ib58e7dcab6d0f5f46f3cf342eb541c1cc6b6cdc6 Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com> Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
Diffstat (limited to 'src/qml/jsruntime')
-rw-r--r--src/qml/jsruntime/qv4object_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qml/jsruntime/qv4object_p.h b/src/qml/jsruntime/qv4object_p.h
index daef18d4e2..0d5955a0e7 100644
--- a/src/qml/jsruntime/qv4object_p.h
+++ b/src/qml/jsruntime/qv4object_p.h
@@ -210,6 +210,7 @@ struct Q_QML_EXPORT Object: Managed {
delete [] arrayAttributes;
arrayAttributes = newAttrs + arrayOffset;
}
+ arrayAlloc += arrayOffset;
}
public: