]> git.sesse.net Git - vlc/commitdiff
Fix memory leaks in extensions
authorJean-Philippe André <jpeg@videolan.org>
Wed, 3 Feb 2010 16:36:28 +0000 (17:36 +0100)
committerJean-Philippe André <jpeg@videolan.org>
Wed, 3 Feb 2010 16:38:03 +0000 (17:38 +0100)
modules/misc/lua/extension.c

index 87da00c6c9c4115bfa8d95fc1a92bcb560eb7402..2a6f4041ca055039725b13302a80a1c4d9e6cfd5 100644 (file)
@@ -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 );