diff options
author | Lars Knoll <lars.knoll@qt.io> | 2018-03-07 08:48:57 +0100 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2018-03-08 12:32:38 +0000 |
commit | dfd5cc04a6745cd90e6459ffd99d59ed14471f15 (patch) | |
tree | c54a995d54c83a5102d78c79d51d1d95814c3143 /src/qml/qml/qqmlobjectcreator.cpp | |
parent | ded165b94b9dd5eb01b1b879cfef5035efc418d0 (diff) |
Fix issue with allocating huge objects in the memory manager
We shouldn't allocate objects that are larger than the size of
a standard memory segment through the chunk allocator, as this
can lead to problems when freeing the segment and then re-using
it again.
Instead allocate a private MemorySegment for these objects, and
free it when the object gets garbage collected.
Task-number: QTBUG-66732
Change-Id: Ic24ff65d204977f313ab0adaf7a8132883e525f0
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
(cherry picked from commit c99abf1851bbbfcec11eb77173df620746940ab0)
Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
Diffstat (limited to 'src/qml/qml/qqmlobjectcreator.cpp')
0 files changed, 0 insertions, 0 deletions