small bugfixes and leaks, patch by João Silva

This commit is contained in:
Vítor Santos Costa
2014-06-14 10:27:39 +01:00
parent 6286de06be
commit f00a6d5a40
19 changed files with 57 additions and 21 deletions

View File

@@ -791,7 +791,7 @@ PRED_IMPL("locale_destroy", 1, locale_destroy, 0)
static
PRED_IMPL("set_locale", 1, set_locale, 0)
{ PRED_LD
PL_locale *l;
PL_locale *l = NULL;
if ( getLocaleEx(A1, &l) )
{ PL_locale *ol = LD->locale.current;