Commit 4335aecf authored by Hannes Domani's avatar Hannes Domani Committed by Tristan Matthews

playlist: fetcher: fix memory leaks

Signed-off-by: default avatarTristan Matthews <le.businessman@gmail.com>
(cherry picked from commit a868b9e580a2ec98ec4a13ba5a2cf463821af337)
parent 28217379
...@@ -227,15 +227,15 @@ static int FindArt( playlist_fetcher_t *p_fetcher, input_item_t *p_item ) ...@@ -227,15 +227,15 @@ static int FindArt( playlist_fetcher_t *p_fetcher, input_item_t *p_item )
msg_Dbg( p_fetcher->object, msg_Dbg( p_fetcher->object,
" will search at higher scope, if possible" ); " will search at higher scope, if possible" );
p_album = &p_fetcher->albums.p_elems[fe_idx]; p_album = &p_fetcher->albums.p_elems[fe_idx];
psz_artist = psz_album = NULL;
break; break;
} }
FOREACH_END(); FOREACH_END();
} }
else
{
free( psz_artist ); free( psz_artist );
free( psz_album ); free( psz_album );
}
if ( playlist_FindArtInCacheUsingItemUID( p_item ) != VLC_SUCCESS ) if ( playlist_FindArtInCacheUsingItemUID( p_item ) != VLC_SUCCESS )
playlist_FindArtInCache( p_item ); playlist_FindArtInCache( p_item );
......
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