]> git.sesse.net Git - vlc/commitdiff
mmsh: Fix an input_item_t leak.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Tue, 26 Aug 2008 07:26:38 +0000 (09:26 +0200)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Tue, 26 Aug 2008 07:26:54 +0000 (09:26 +0200)
modules/access/mms/mmsh.c

index 10f2037130db04f2b8838277658e84a3e1702f1e..5f1f3c278bdddd8a16f5f64583ad64c69c80669e 100644 (file)
@@ -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 );