summaryrefslogtreecommitdiffstats
path: root/libhb/reader.c
diff options
context:
space:
mode:
Diffstat (limited to 'libhb/reader.c')
-rw-r--r--libhb/reader.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libhb/reader.c b/libhb/reader.c
index 783535492..bd3758eea 100644
--- a/libhb/reader.c
+++ b/libhb/reader.c
@@ -84,9 +84,14 @@ static void push_buf( const hb_reader_t *r, hb_fifo_t *fifo, hb_buffer_t *buf )
if ( hb_fifo_full_wait( fifo ) )
{
hb_fifo_push( fifo, buf );
+ buf = NULL;
break;
}
}
+ if ( buf )
+ {
+ hb_buffer_close( &buf );
+ }
}
static int is_audio( hb_reader_t *r, int id )