summaryrefslogtreecommitdiffstats
path: root/libhb/muxcommon.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2009-12-08 23:48:54 +0000
committerjstebbins <[email protected]>2009-12-08 23:48:54 +0000
commitd0d9e2e2c6365b7f4c0a68cb70f5117d40ba2962 (patch)
tree5a5bf6e69da432057a2f4fc14aa25eeba4631e38 /libhb/muxcommon.c
parent550206d2774f6c4f9c76252a6ae986cd6269ca46 (diff)
fix buffer leak during indepth scan
and fix a couple potential leaks if the timing is just right in work loops git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3016 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/muxcommon.c')
-rw-r--r--libhb/muxcommon.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libhb/muxcommon.c b/libhb/muxcommon.c
index dbaa9c478..7ea3c7933 100644
--- a/libhb/muxcommon.c
+++ b/libhb/muxcommon.c
@@ -369,7 +369,13 @@ static void mux_loop( void * _w )
if ( buf_in == NULL )
continue;
if ( *job->die )
+ {
+ if( buf_in )
+ {
+ hb_buffer_close( &buf_in );
+ }
break;
+ }
w->status = w->work( w, &buf_in, NULL );
}