[x264-devel] commit: Fix a few more minor memleaks (Jason Garrett-Glaser )

git version control git at videolan.org
Wed Jul 30 03:49:59 CEST 2008


x264 | branch: master | Jason Garrett-Glaser <darkshikari at gmail.com> | Tue Jul 29 13:42:41 2008 -0600| [c761eb0b9f2c032503bed86118d57d618cfefece]

Fix a few more minor memleaks

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

 muxers.c |    2 ++
 x264.c   |    1 +
 2 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/muxers.c b/muxers.c
index c16b2ff..bb2643c 100644
--- a/muxers.c
+++ b/muxers.c
@@ -503,6 +503,8 @@ int close_file_thread( hnd_t handle )
     thread_input_t *h = handle;
     h->p_close_infile( h->p_handle );
     x264_picture_clean( &h->pic );
+    x264_pthread_join( h->tid, NULL );
+    free( h->next_args );
     free( h );
     return 0;
 }
diff --git a/x264.c b/x264.c
index 5741d00..b4b832e 100644
--- a/x264.c
+++ b/x264.c
@@ -852,6 +852,7 @@ static int  Encode( x264_param_t *param, cli_opt_t *opt )
     i_end = x264_mdate();
     x264_picture_clean( &pic );
     x264_encoder_close( h );
+    x264_free( mux_buffer );
     fprintf( stderr, "\n" );
 
     if( b_ctrl_c )



More information about the x264-devel mailing list