msvcp: Fix global_locale leak.

oldstable
Piotr Caban 2014-05-08 16:44:44 +02:00 committed by Alexandre Julliard
parent ea7baf5304
commit 6fb5155f30
2 changed files with 4 additions and 2 deletions

View File

@ -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) {

View File

@ -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) {