diff options
author | Morten Sørvig <morten.sorvig@qt.io> | 2022-06-24 13:10:33 +0200 |
---|---|---|
committer | Morten Sørvig <morten.sorvig@qt.io> | 2022-07-06 17:56:58 +0200 |
commit | 25c2d05340eee01cf55457b8327f8f69d408879a (patch) | |
tree | b2ac092da58c8fee72c137112513b330d619f0fb /src/plugins/platforms/wasm/CMakeLists.txt | |
parent | c84897c137711cb0a402426758ea1e9af9ff1796 (diff) |
wasm: don't access deleted settings objects
The emscripten_idb_async_ functions are async, so there
is no guarantee that the QSettings object which made
the request will be live by the time the completion
callback is made.
Keep track of live QWasmSettingsPrivate objects, return
early from the callbacks if userData does not point
to a valid QWasmSettingsPrivate.
Pick-to: 6.4 6.3 6.2 5.15
Change-Id: Ia319b1875dcf2c329ba27954e3f026e004fe0aac
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
Diffstat (limited to 'src/plugins/platforms/wasm/CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions