diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2022-01-14 13:41:20 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2022-01-18 02:31:30 +0100 |
commit | 1b4a5ecc91c87ffe7869d233c00a37d1b5b9cb13 (patch) | |
tree | 77f2954173d2bd7c5e0f720b9f6d29677cc9d67b /src/gui/Qt5GuiConfigExtras.cmake.in | |
parent | 6f6c8d061803a3c89f260fa234388dc27c308bce (diff) |
JSON: When clearing duplicate object entries, also clear containers
Previously, if you had multiple entries with the same name in an object,
and some of them were again objects or arrays, parsing the JSON document
would leak memory.
Also, we use std::stable_sort instead of std::sort now, so that we don't
accidentally randomize the order of elements with equal keys.
[ChangeLog][QtCore][JSON] A memory leak in the JSON parser when reading
objects with duplicate keys was fixed.
Pick-to: 5.15 6.2 6.3
Fixes: QTBUG-99799
Change-Id: Ic2065f2e490c2d3506a356745542148ad9c24262
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/gui/Qt5GuiConfigExtras.cmake.in')
0 files changed, 0 insertions, 0 deletions