Commit b8b83532 authored by Rémi Duraffort's avatar Rémi Duraffort

Fix memleak in Qt interface.

parent a406e21b
......@@ -193,10 +193,7 @@ void MetaPanel::update( input_item_t *p_item )
/* URL / URI */
psz_meta = input_item_GetURL( p_item );
if( !EMPTY_STR( psz_meta ) )
{
emit uriSet( QString( psz_meta ) );
free( psz_meta );
}
else
{
free( psz_meta );
......@@ -204,6 +201,7 @@ void MetaPanel::update( input_item_t *p_item )
if( !EMPTY_STR( psz_meta ) )
emit uriSet( QString( psz_meta ) );
}
free( psz_meta );
/* Other classic though */
UPDATE_META( Artist, artist_text );
......
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