diff --git a/glib/gutils.c b/glib/gutils.c index 4e7b00004..406665e03 100644 --- a/glib/gutils.c +++ b/glib/gutils.c @@ -3111,9 +3111,12 @@ guess_category_value (const gchar *category_name) * by Windows and the Microsoft C runtime (in the "English_United * States" format) translated into the Unixish format. */ - retval = g_win32_getlocale (); - if ((retval != NULL) && (retval[0] != '\0')) + { + char *locale = g_win32_getlocale (); + retval = g_intern_string (locale); + g_free (locale); return retval; + } #endif return NULL;