Commit 9eb2d075 authored by Christophe Mutricy's avatar Christophe Mutricy

Fix tiny memleak

parent bc9de538
...@@ -387,7 +387,9 @@ static void *Init( vlc_object_t *obj ) ...@@ -387,7 +387,9 @@ static void *Init( vlc_object_t *obj )
#ifdef ENABLE_NLS #ifdef ENABLE_NLS
// Translation - get locale // Translation - get locale
# if defined (WIN32) || defined (__APPLE__) # if defined (WIN32) || defined (__APPLE__)
QString lang = qfu( config_GetPsz( p_intf, "language" ) ); char* psz_tmp = config_GetPsz( p_intf, "language" );
QString lang = qfu( psz_tmp );
free( psz_tmp;
if (lang == "auto") if (lang == "auto")
lang = QLocale::system().name(); lang = QLocale::system().name();
# else # else
......
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