[vlc-devel] commit: Fix potential object leak. ( Rémi Duraffort )

git version control git at videolan.org
Wed May 20 21:04:57 CEST 2009


vlc | branch: 1.0-bugfix | Rémi Duraffort <ivoire at videolan.org> | Wed May 20 21:02:08 2009 +0200| [b36b614a1469679d21ec24e2f89b95bb89358251] | committer: Rémi Duraffort 

Fix potential object leak.

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

 src/control/media_player.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/control/media_player.c b/src/control/media_player.c
index fe80925..63ef8f0 100644
--- a/src/control/media_player.c
+++ b/src/control/media_player.c
@@ -1243,6 +1243,7 @@ libvlc_track_description_t *
     if( val_list.p_list->i_count <= 0 ) /* no tracks */
     {
         var_Change( p_input, psz_variable, VLC_VAR_FREELIST, &val_list, &text_list);
+        vlc_object_release( p_input );
         return NULL;
     }
 




More information about the vlc-devel mailing list