mirror of
https://github.com/reactos/wine.git
synced 2024-11-28 14:10:32 +00:00
msvcp: Fix global_locale leak.
This commit is contained in:
parent
ea7baf5304
commit
6fb5155f30
@ -8696,8 +8696,9 @@ void free_locale(void)
|
||||
facets_elem *iter, *safe;
|
||||
|
||||
if(global_locale) {
|
||||
locale__Locimp_dtor(global_locale);
|
||||
locale_dtor(&classic_locale);
|
||||
locale__Locimp_dtor(global_locale);
|
||||
MSVCRT_operator_delete(global_locale);
|
||||
}
|
||||
|
||||
LIST_FOR_EACH_ENTRY_SAFE(iter, safe, &lazy_facets, facets_elem, entry) {
|
||||
|
@ -10690,8 +10690,9 @@ void free_locale(void)
|
||||
facets_elem *iter, *safe;
|
||||
|
||||
if(global_locale) {
|
||||
locale__Locimp_dtor(global_locale);
|
||||
locale_dtor(&classic_locale);
|
||||
locale__Locimp_dtor(global_locale);
|
||||
MSVCRT_operator_delete(global_locale);
|
||||
}
|
||||
|
||||
LIST_FOR_EACH_ENTRY_SAFE(iter, safe, &lazy_facets, facets_elem, entry) {
|
||||
|
Loading…
Reference in New Issue
Block a user