[vlc-devel] commit: libvlc: Fix a leak in media_discoverer. (Pierre d'Herbemont )
git version control
git at videolan.org
Tue Dec 15 15:07:09 CET 2009
vlc | branch: master | Pierre d'Herbemont <pdherbemont at free.fr> | Fri Dec 11 19:45:59 2009 +0100| [6ada759b20bf830a063c08eda115b033e87f6d3e] | committer: Pierre d'Herbemont
libvlc: Fix a leak in media_discoverer.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6ada759b20bf830a063c08eda115b033e87f6d3e
---
src/control/media_discoverer.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/control/media_discoverer.c b/src/control/media_discoverer.c
index f1a2a4e..8ff7c6a 100644
--- a/src/control/media_discoverer.c
+++ b/src/control/media_discoverer.c
@@ -100,6 +100,8 @@ static void services_discovery_item_added( const vlc_event_t * p_event,
libvlc_media_list_lock( p_mlist );
_libvlc_media_list_add_media( p_mlist, p_md, NULL );
libvlc_media_list_unlock( p_mlist );
+
+ libvlc_media_release( p_md );
}
/**************************************************************************
More information about the vlc-devel
mailing list