[vlc-devel] commit: Fix memory leaks in extensions ( Jean-Philippe André )
git version control
git at videolan.org
Wed Feb 3 17:42:38 CET 2010
vlc | branch: master | Jean-Philippe André <jpeg at videolan.org> | Wed Feb 3 17:36:28 2010 +0100| [6b038c2936c141761092a206bc459b46dec2603c] | committer: Jean-Philippe André
Fix memory leaks in extensions
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6b038c2936c141761092a206bc459b46dec2603c
---
modules/misc/lua/extension.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/modules/misc/lua/extension.c b/modules/misc/lua/extension.c
index 87da00c..2a6f404 100644
--- a/modules/misc/lua/extension.c
+++ b/modules/misc/lua/extension.c
@@ -170,6 +170,11 @@ void Close_Extension( vlc_object_t *p_this )
lua_close( p_ext->p_sys->L );
free( p_ext->psz_name );
free( p_ext->psz_title );
+ free( p_ext->psz_author );
+ free( p_ext->psz_description );
+ free( p_ext->psz_shortdescription );
+ free( p_ext->psz_url );
+ free( p_ext->psz_version );
vlc_mutex_destroy( &p_ext->p_sys->running_lock );
vlc_mutex_destroy( &p_ext->p_sys->command_lock );
@@ -416,6 +421,7 @@ exit:
free( p_ext->psz_url );
free( p_ext->psz_author );
free( p_ext->psz_description );
+ free( p_ext->psz_shortdescription );
free( p_ext->psz_version );
vlc_mutex_destroy( &p_ext->p_sys->command_lock );
vlc_mutex_destroy( &p_ext->p_sys->running_lock );
More information about the vlc-devel
mailing list