[RFC PATCH] kernel32: Use uselocale function to resture C locale for LC_CTYPE category.

Piotr Caban piotr.caban at gmail.com
Wed Mar 20 15:04:18 CDT 2019


On 3/20/19 8:52 PM, Piotr Caban wrote:
> On 3/20/19 8:43 PM, Ken Thomases wrote:
>> It would be better to not duplicate the locale objects for every 
>> thread (and leak them).  You can use static variables and one-time 
>> initialization.  And perhaps share them with the ones in kernel32, 
>> perhaps via libwine.
> There's no leak, it's freed by glibc on thread/process destruction.
Sorry, I've checked it wrongly. glibc only frees it for the main thread, 
it's leaked in other threads.

Thanks,
Piotr



More information about the wine-devel mailing list