[vlc-commits] lib: fix memory leak

Rémi Denis-Courmont git at videolan.org
Wed Jun 17 23:11:14 CEST 2015


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Jun 18 00:09:41 2015 +0300| [3cee1194f9c2b5ab9ded3799e2923a593f024ef7] | committer: Rémi Denis-Courmont

lib: fix memory leak

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

 lib/media_player.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/media_player.c b/lib/media_player.c
index cc5c502..f35c0cb 100644
--- a/lib/media_player.c
+++ b/lib/media_player.c
@@ -1374,6 +1374,7 @@ int libvlc_media_player_get_full_title_descriptions( libvlc_media_player_t *p_mi
             title->psz_name = NULL;
         vlc_input_title_Delete( p_input_title[i] );
     }
+    free( p_input_title );
 
     *pp_titles = titles;
     return count;



More information about the vlc-commits mailing list