Fix Object::getArrayHeadRoom()
authorLars Knoll <lars.knoll@digia.com>
Tue, 12 Nov 2013 11:17:14 +0000 (12:17 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 12 Nov 2013 17:20:30 +0000 (18:20 +0100)
commitaf0a47de7ae093109e51db78976251040a668be0
tree72e23709a47ec6c15224d1ae35c90358d7d21ec5
parente353d9e9fab71fd734b5f69bb39febed826abb9b
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>
src/qml/jsruntime/qv4object_p.h