[vlc-commits] playlist: Fetcher: Fix leak

Hugo Beauzée-Luyssen git at videolan.org
Tue Oct 20 17:10:06 CEST 2015


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Tue Oct 20 17:01:39 2015 +0200| [f96d78321a3a26cf0f70a8677894a83a7adefe30] | committer: Hugo Beauzée-Luyssen

playlist: Fetcher: Fix leak

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f96d78321a3a26cf0f70a8677894a83a7adefe30
---

 src/playlist/fetcher.c |    8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/playlist/fetcher.c b/src/playlist/fetcher.c
index 41e0c32..a8b7b11 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 album;
+    FOREACH_ARRAY( album, p_fetcher->albums )
+        free( album.psz_album );
+        free( album.psz_artist );
+        free( album.psz_arturl );
+    FOREACH_END()
+    ARRAY_RESET( p_fetcher->albums );
+
     free( p_fetcher );
 }
 



More information about the vlc-commits mailing list