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 10f2037..5f1f3c2 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 );