[vlc-commits] playlist: Fetcher: Fix leak
Hugo Beauzée-Luyssen
git at videolan.org
Tue Oct 20 17:03:06 CEST 2015
vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Tue Oct 20 17:01:39 2015 +0200| [e0caba813c828a0ab1779ba335ebb26f0d3875d4] | committer: Hugo Beauzée-Luyssen
playlist: Fetcher: Fix leak
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e0caba813c828a0ab1779ba335ebb26f0d3875d4
---
src/playlist/fetcher.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/src/playlist/fetcher.c b/src/playlist/fetcher.c
index 41e0c32..d8b8a46 100644
--- a/src/playlist/fetcher.c
+++ b/src/playlist/fetcher.c
@@ -169,6 +169,14 @@ void playlist_fetcher_Delete( playlist_fetcher_t *p_fetcher )
vlc_cond_destroy( &p_fetcher->wait );
vlc_mutex_destroy( &p_fetcher->lock );
+ playlist_album_t p_album;
+ FOREACH_ARRAY( p_album, p_fetcher->albums )
+ free( p_album.psz_album );
+ free( p_album.psz_artist );
+ free( p_album.psz_arturl );
+ FOREACH_END()
+ ARRAY_RESET( p_fetcher->albums );
+
free( p_fetcher );
}
More information about the vlc-commits
mailing list