Commit 8ecc026e authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

qt4: fix crash if input-title-format is empty

parent 9f09d628
......@@ -512,10 +512,17 @@ void InputManager::UpdateName()
/* Try to get the nowplaying */
char *format = var_InheritString( p_intf, "input-title-format" );
char *formated = str_format_meta( p_input, format );
free( format );
name = qfu(formated);
free( formated );
char *formatted = NULL;
if (format != NULL)
{
formatted = str_format_meta( p_input, format );
free( format );
if( formatted != NULL )
{
name = qfu(formatted);
free( formatted );
}
}
/* If we have Nothing */
if( name.simplified().isEmpty() )
......
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