diff options
author | Mike Achtelik <mike.achtelik@gmail.com> | 2020-07-03 10:13:58 +0200 |
---|---|---|
committer | Mike Achtelik <mike.achtelik@gmail.com> | 2020-07-04 17:56:11 +0200 |
commit | 90f1ef14aaf2f4b4dc49755ab8605e6a37ee06c6 (patch) | |
tree | f63c0a0d743cddd3072b87ce91ac6c1a169fcd7d /src/plugins/platforminputcontexts/ibus/ibus.pro | |
parent | f172f0dee931821991905879d03c01a409975983 (diff) |
Fix workaround in pthread destructor
Amends dcdfb6908db0f83cbc4e550859f56ee58a6b3420 which failed to take the
workaround in destroy_current_thread_data into account.
Since pthread_getspecific was completely replaced with the thread_local variable
currentThreadData, the workaround has no effect anymore. Therefore we need to
replace it with a workaround that makes sure currentThreadData is set inside of
the destructor function.
This prevents a leak, where QThreadPrivate::finish() tries to access the
thread data, but since it already is null, recreates it without ever deleting it.
Pick-to: 5.15
Change-Id: I3811d262a411a6bde9d6eb90f8d17e0bbc5de657
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/plugins/platforminputcontexts/ibus/ibus.pro')
0 files changed, 0 insertions, 0 deletions