From 058fc01ad879d96647fe5649b9264bcc02f359ff Mon Sep 17 00:00:00 2001 From: John Stebbins Date: Fri, 9 Sep 2016 15:10:19 -0700 Subject: [PATCH] sync: fix small memory leak an hb_list_t was not freed at the end of an encode --- libhb/sync.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libhb/sync.c b/libhb/sync.c index 31e883f6d..7fcd71603 100644 --- a/libhb/sync.c +++ b/libhb/sync.c @@ -2303,6 +2303,7 @@ static void syncVideoClose( hb_work_object_t * w ) } hb_list_close(&pv->stream->delta_list); hb_list_empty(&pv->stream->in_queue); + hb_list_empty(&pv->stream->scr_delay_queue); hb_cond_close(&pv->stream->cond_full); // Close work threads @@ -2753,6 +2754,7 @@ static void syncAudioClose( hb_work_object_t * w ) } hb_list_close(&pv->stream->delta_list); hb_list_empty(&pv->stream->in_queue); + hb_list_empty(&pv->stream->scr_delay_queue); hb_cond_close(&pv->stream->cond_full); free(pv); w->private_data = NULL; @@ -3069,6 +3071,7 @@ static void syncSubtitleClose( hb_work_object_t * w ) } hb_list_close(&pv->stream->delta_list); hb_list_empty(&pv->stream->in_queue); + hb_list_empty(&pv->stream->scr_delay_queue); hb_cond_close(&pv->stream->cond_full); hb_buffer_list_close(&pv->stream->subtitle.sanitizer.list_current); free(pv); -- 2.40.0