Commit e294c35d authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

Fix crash on UTF-8 systems in previous commit

parent e05f7924
......@@ -173,7 +173,7 @@ static inline char *locale_dup (const char *string, vlc_bool_t from)
void LocaleFree (const char *str)
#if defined (USE_ICONV)
if (find_charset ())
if (!find_charset ())
free ((char *)str);
#elif defined (USE_MB2MB)
free ((char *)str);
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