[vlc-devel] commit: Fix memleak. ( Rémi Duraffort )

git version control git at videolan.org
Thu Jul 31 19:35:47 CEST 2008


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Thu Jul 31 19:31:11 2008 +0200| [f04d366c93b97c8e910380f106f17b0a58741975]

Fix memleak.

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

 modules/video_filter/osdmenu.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/modules/video_filter/osdmenu.c b/modules/video_filter/osdmenu.c
index 58b5939..8a49204 100644
--- a/modules/video_filter/osdmenu.c
+++ b/modules/video_filter/osdmenu.c
@@ -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 );
     }




More information about the vlc-devel mailing list