From: Fiona Glaser Date: Tue, 29 Jul 2008 19:42:41 +0000 (-0600) Subject: Fix a few more minor memleaks X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9da8410dfd8877576438c909a3311688c19d6104;p=libx264 Fix a few more minor memleaks --- diff --git a/muxers.c b/muxers.c index c16b2ffa..bb2643c0 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 5741d00c..b4b832ec 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 )