[vlc-devel] commit: Fix memleaks when closing the module. ( Rémi Duraffort )

git version control git at videolan.org
Tue Aug 12 22:19:19 CEST 2008


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Tue Aug 12 22:21:52 2008 +0200| [f99e6e90765317fcb160ffc90309d7b3e85be4c8] | committer: Rémi Duraffort 

Fix memleaks when closing the module.

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

 modules/mux/asf.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/modules/mux/asf.c b/modules/mux/asf.c
index 4b9d24f..f2c3c8c 100644
--- a/modules/mux/asf.c
+++ b/modules/mux/asf.c
@@ -294,6 +294,12 @@ static void Close( vlc_object_t * p_this )
         free( p_sys->track[i].p_extra );
         es_format_Clean( &p_sys->track[i].fmt );
     }
+
+    free( p_sys->psz_title );
+    free( p_sys->psz_author );
+    free( p_sys->psz_copyright );
+    free( p_sys->psz_comment );
+    free( p_sys->psz_rating );
     free( p_sys );
 }
 




More information about the vlc-devel mailing list