summaryrefslogtreecommitdiffstats
path: root/libhb/muxcommon.c
diff options
context:
space:
mode:
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 );
}