From 32a56184a88817091950a94335dbf1036677eaf1 Mon Sep 17 00:00:00 2001 From: jstebbins Date: Wed, 23 Oct 2013 20:33:32 +0000 Subject: libhb: Plug some leaks and clean up the buffer pool code a little. Filters were leaking buffers when a job is cancelled. decavcodec could leak when job cancelled. decavcodec leaked audio extradata in BSInfo encavcodec and encavcodecaudio leaked AVCodecContext sync leaked subtitle_sanitizer_t data git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5853 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- libhb/encavcodec.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libhb/encavcodec.c') diff --git a/libhb/encavcodec.c b/libhb/encavcodec.c index 04125301c..a695fa443 100644 --- a/libhb/encavcodec.c +++ b/libhb/encavcodec.c @@ -291,6 +291,7 @@ void encavcodecClose( hb_work_object_t * w ) hb_deep_log( 2, "encavcodec: closing libavcodec" ); avcodec_flush_buffers( pv->context ); hb_avcodec_close( pv->context ); + av_free( pv->context ); } if( pv->file ) { -- cgit v1.2.3