diff options
author | jstebbins <[email protected]> | 2012-09-13 20:13:59 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2012-09-13 20:13:59 +0000 |
commit | 8329bf01460521587889fd4133f76b32ccf13217 (patch) | |
tree | c0758b2c843c05b03ab1ad93857c6045ad7c0a91 /libhb/work.c | |
parent | ae8dee43bbcd12b5a4a532c7f4f65bf912479428 (diff) |
libhb: fix a collection of small memory leaks
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4963 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/work.c')
-rw-r--r-- | libhb/work.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libhb/work.c b/libhb/work.c index 9dffb5f46..858156f45 100644 --- a/libhb/work.c +++ b/libhb/work.c @@ -750,8 +750,8 @@ static void do_job( hb_job_t * job ) job->fifo_mpeg2 = hb_fifo_init( FIFO_LARGE, FIFO_LARGE_WAKE ); job->fifo_raw = hb_fifo_init( FIFO_SMALL, FIFO_SMALL_WAKE ); job->fifo_sync = hb_fifo_init( FIFO_SMALL, FIFO_SMALL_WAKE ); - job->fifo_render = hb_fifo_init( FIFO_SMALL, FIFO_SMALL_WAKE ); job->fifo_mpeg4 = hb_fifo_init( FIFO_LARGE, FIFO_LARGE_WAKE ); + job->fifo_render = NULL; // Attached to filter chain /* Audio fifos must be initialized before sync */ if (!job->indepth_scan) @@ -1324,7 +1324,6 @@ cleanup: hb_fifo_close( &job->fifo_mpeg2 ); hb_fifo_close( &job->fifo_raw ); hb_fifo_close( &job->fifo_sync ); - hb_fifo_close( &job->fifo_render ); hb_fifo_close( &job->fifo_mpeg4 ); for( i = 0; i < hb_list_count( title->list_subtitle ); i++ ) @@ -1430,6 +1429,7 @@ cleanup: for( i = 0; i < hb_list_count( job->list_filter ); i++ ) { hb_filter_object_t * filter = hb_list_item( job->list_filter, i ); + hb_fifo_close( &filter->fifo_out ); hb_filter_close( &filter ); } hb_list_close( &job->list_filter ); |