Fix a memory leak when using non-wx threads
The wxThreadSpecificInfo object created by wxThreadSpecificInfo::Get() was only released by the wxThreadInternal's cleanup, which meant that it was leaked if wxThreadSpecificInfo::Get() was called by a thread not created by wxThread, e.g. when using std::async or std::thread. Fix this by simply using C++11 thread_local and removing the entire wxThreadSpecificInfo machinery entirely. See #23535. Closes #23543.
This commit is contained in:
parent
e85b431686
commit
d666d1e222
17 changed files with 15 additions and 272 deletions
|
|
@ -540,7 +540,6 @@
|
|||
<ClCompile Include="..\..\src\common\tarstrm.cpp" />
|
||||
<ClCompile Include="..\..\src\common\textbuf.cpp" />
|
||||
<ClCompile Include="..\..\src\common\textfile.cpp" />
|
||||
<ClCompile Include="..\..\src\common\threadinfo.cpp" />
|
||||
<ClCompile Include="..\..\src\common\time.cpp" />
|
||||
<ClCompile Include="..\..\src\common\timercmn.cpp" />
|
||||
<ClCompile Include="..\..\src\common\timerimpl.cpp" />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue