diff options
Diffstat (limited to 'libhb/fifo.c')
-rw-r--r-- | libhb/fifo.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libhb/fifo.c b/libhb/fifo.c index c756f5673..7337874bf 100644 --- a/libhb/fifo.c +++ b/libhb/fifo.c @@ -191,6 +191,7 @@ void hb_buffer_close( hb_buffer_t ** _b ) if( buffer_pool && b->data && !hb_fifo_is_full( buffer_pool ) ) { hb_fifo_push_head( buffer_pool, b ); + *_b = NULL; return; } /* either the pool is full or this size doesn't use a pool - free the buf */ |