[vlc-devel] commit: Fix object leak (but not unsafe item access) ( Rémi Denis-Courmont )

git version control git at videolan.org
Wed Oct 14 18:29:17 CEST 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Oct 14 19:29:03 2009 +0300| [c5ad7197dc6c1e02009e0e021a199906580d90a0] | committer: Rémi Denis-Courmont 

Fix object leak (but not unsafe item access)

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

 modules/services_discovery/sap.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/modules/services_discovery/sap.c b/modules/services_discovery/sap.c
index 94cf482..eefd893 100644
--- a/modules/services_discovery/sap.c
+++ b/modules/services_discovery/sap.c
@@ -679,6 +679,7 @@ static int Demux( demux_t *p_demux )
     p_parent_input->i_type = ITEM_TYPE_NET;
 
     vlc_mutex_unlock( &p_parent_input->lock );
+    vlc_object_release( p_input );
     return VLC_SUCCESS;
 }
 




More information about the vlc-devel mailing list