]> git.sesse.net Git - vlc/commitdiff
Fix memleak.
authorRémi Duraffort <ivoire@videolan.org>
Thu, 31 Jul 2008 17:31:11 +0000 (19:31 +0200)
committerRémi Duraffort <ivoire@videolan.org>
Thu, 31 Jul 2008 17:31:11 +0000 (19:31 +0200)
modules/video_filter/osdmenu.c

index 58b593963e977b359a3eff98e0657134c100cfb1..8a492046d74685a09d2da76824d0b3f7f421c81d 100644 (file)
@@ -272,6 +272,7 @@ error:
 
     osd_MenuDelete( p_this, p_sys->p_menu );
     p_sys->p_menu = NULL;
+    free( p_sys->psz_path );
     free( p_sys->psz_file );
     free( p_sys );
     return VLC_EGENERIC;
@@ -324,6 +325,7 @@ static void DestroyFilter( vlc_object_t *p_this )
     {
         osd_MenuDelete( p_filter, p_sys->p_menu );
 
+        free( p_sys->psz_path );
         free( p_sys->psz_file );
         free( p_sys );
     }