diff options
author | John Stebbins <[email protected]> | 2016-09-09 15:10:19 -0700 |
---|---|---|
committer | John Stebbins <[email protected]> | 2016-09-09 15:11:16 -0700 |
commit | 058fc01ad879d96647fe5649b9264bcc02f359ff (patch) | |
tree | d8f14f3b448626391e496c20590c6e6cf1f68b05 /libhb/sync.c | |
parent | 3ce76b920ca472439c60bad9cde35670fc630edb (diff) |
sync: fix small memory leak
an hb_list_t was not freed at the end of an encode
Diffstat (limited to 'libhb/sync.c')
-rw-r--r-- | libhb/sync.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); |