[vlc-devel] commit: mmsh: Fix an input_item_t leak. (Pierre d'Herbemont )

git version control git at videolan.org
Tue Aug 26 09:23:48 CEST 2008


vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Tue Aug 26 09:26:38 2008 +0200| [37843abd603cef87fd541dbdd9e67646fee90faa] | committer: Pierre d'Herbemont 

mmsh: Fix an input_item_t leak.

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

 modules/access/mms/mmsh.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/modules/access/mms/mmsh.c b/modules/access/mms/mmsh.c
index 10f2037..5f1f3c2 100644
--- a/modules/access/mms/mmsh.c
+++ b/modules/access/mms/mmsh.c
@@ -190,6 +190,7 @@ int MMSHOpen( access_t *p_access )
         /** \bug we do not autodelete here */
         p_new_loc = input_item_New( p_access, psz_location, psz_location );
         input_item_AddSubItem( input_GetItem( p_input ), p_new_loc );
+        vlc_gc_decref( p_new_loc );
         vlc_object_release( p_input );
 
         free( psz_location );




More information about the vlc-devel mailing list