[PATCH] QSystemLocale: bail out if accessed post-destruction
authorThiago Macieira <thiago.macieira@intel.com>
Fri, 24 Jan 2025 18:28:30 +0000 (10:28 -0800)
committerPatrick Franz <deltaone@debian.org>
Fri, 18 Jul 2025 13:28:20 +0000 (15:28 +0200)
commitd3c3a097ee3f61c3bce7afbd2615e6c18cbd292f
tree1b0e43ec2d19d3ea2b21713a86367e9a128a636a
parent644faabfa12d304dc2edfc8ae8afdeab910b0dcd
[PATCH] QSystemLocale: bail out if accessed post-destruction

There's little we can do, but a lot of content ends up in QLocale very
late in the execution. Let's at least not crash.

Task-number: QTBUG-133206
Change-Id: I77d41141cb115147f9befffdd5e69dac19c96044
Reviewed-by: Albert Astals Cid <aacid@kde.org>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
(cherry picked from commit e32f28034ad2383393645777bcd96eab3f696076)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit d5c5f9f3529b384d0d4bea2d51f0ad6a3d57481d)

Gbp-Pq: Name upstream_qsystemlocale_post_destruction_access.patch
src/corelib/text/qlocale_unix.cpp
src/corelib/text/qlocale_win.cpp