20 Mar
2019
20 Mar
'19
8:04 p.m.
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