Fix memory leak in dummy input
authorRafaël Carré <funman@videolan.org>
Mon, 5 May 2008 12:30:54 +0000 (14:30 +0200)
committerRafaël Carré <funman@videolan.org>
Mon, 5 May 2008 12:30:54 +0000 (14:30 +0200)
modules/misc/dummy/input.c

index f05eebf..3387b00 100644 (file)
@@ -107,6 +107,7 @@ int E_(OpenAccess)( vlc_object_t *p_this )
     p_access->p_sys = NULL;
 
     /* Force dummy demux plug-in */
+    free( p_access->psz_demux );
     p_access->psz_demux = strdup( "vlc" );
 
     return VLC_SUCCESS;