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

git version control git at videolan.org
Wed Aug 27 01:14:51 CEST 2008


vlc | branch: 0.9-bugfix | Pierre d'Herbemont <pdherbemont at videolan.org> | Tue Aug 26 09:26:38 2008 +0200| [0110207dd19b234597a1cba78f344b69300a3471] | committer: Christophe Mutricy 

mmsh: Fix an input_item_t leak.
(cherry picked from commit 37843abd603cef87fd541dbdd9e67646fee90faa)

Signed-off-by: Christophe Mutricy <xtophe at videolan.org>

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

 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