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

playlist_SaveArt: fix a memleak.

parent 74e99b37
...@@ -217,6 +217,7 @@ int playlist_SaveArt( playlist_t *p_playlist, input_item_t *p_item, ...@@ -217,6 +217,7 @@ int playlist_SaveArt( playlist_t *p_playlist, input_item_t *p_item,
if( !utf8_stat( psz_filename+7, &s ) ) if( !utf8_stat( psz_filename+7, &s ) )
{ {
input_item_SetArtURL( p_item, psz_filename ); input_item_SetArtURL( p_item, psz_filename );
free( psz_filename );
return VLC_SUCCESS; return VLC_SUCCESS;
} }
...@@ -235,6 +236,7 @@ int playlist_SaveArt( playlist_t *p_playlist, input_item_t *p_item, ...@@ -235,6 +236,7 @@ int playlist_SaveArt( playlist_t *p_playlist, input_item_t *p_item,
} }
fclose( f ); fclose( f );
} }
free( psz_filename );
return VLC_SUCCESS; return VLC_SUCCESS;
} }
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