Commit 6fb5155f authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

msvcp: Fix global_locale leak.

parent ea7baf53
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment