aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4sparsearray_p.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2018-02-15 15:39:01 +0100
committerLars Knoll <lars.knoll@qt.io>2018-02-15 15:39:01 +0100
commit16ca5eab9bdd31774dc8e657f217e044640eecff (patch)
tree9bfcec84ff94fb8f817e6de20b87f86cf86d68a2 /src/qml/jsruntime/qv4sparsearray_p.h
parent421dcfb5792a5ff5e5a9851e0c1edf6e87422680 (diff)
Fix crash when changing from a simple to a sparse array
After that change, if we ran out of slots in the freeList, the last entry would point to the first Value in the value array, not indicating that we ran out of free slots. Task-number: QTBUG-65828 Change-Id: I3e57bb7a0c2dc29172a485a6ea957b6ab5ac962e
Diffstat (limited to 'src/qml/jsruntime/qv4sparsearray_p.h')
-rw-r--r--src/qml/jsruntime/qv4sparsearray_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4sparsearray_p.h b/src/qml/jsruntime/qv4sparsearray_p.h
index 6dca1e1a34..ca6abcda89 100644
--- a/src/qml/jsruntime/qv4sparsearray_p.h
+++ b/src/qml/jsruntime/qv4sparsearray_p.h
@@ -151,7 +151,7 @@ struct Q_QML_EXPORT SparseArray
SparseArray(const SparseArray &other);
- ReturnedValue freeList = 0;
+ ReturnedValue freeList;
private:
SparseArray &operator=(const SparseArray &other);