Fix object leak (but not unsafe item access)
authorRémi Denis-Courmont <remi@remlab.net>
Wed, 14 Oct 2009 16:29:03 +0000 (19:29 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Wed, 14 Oct 2009 16:29:03 +0000 (19:29 +0300)
modules/services_discovery/sap.c

index 94cf482..eefd893 100644 (file)
@@ -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;
 }