diff options
author | Tor Arne Vestbø <tor.arne.vestbo@digia.com> | 2013-10-31 14:50:19 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-11-04 11:42:01 +0100 |
commit | a24ec6b273892c41f1c163fd43b568e3e5ff8279 (patch) | |
tree | 1953975cd949eee4770fc4aa8e91eec3191ceae3 /src/corelib/tools/qregexp.cpp | |
parent | 7b2ae0db664a5f3fe9982a409e7e493245dde8ba (diff) |
Ensure QLocale's shared C-locale QLocalePrivate is never deleted
Other static data such as QTextStream might be initialized before the
static C-locale, in which case QLocale would adopt c_private and bump
the ref-count to 2, only to see it reset back to 1 when the c_locale's
static initialization happened.
The result was that at application shutdown the ref-count would fall
down to 0, and we tried deleting the static data.
This issue was observed with clang in a debug build, where the c_private
is initialized at runtime.
Change-Id: If05221a5e87886e1805ad3c1b1520483f425c0fb
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Diffstat (limited to 'src/corelib/tools/qregexp.cpp')
0 files changed, 0 insertions, 0 deletions