]> granicus.if.org Git - handbrake/commitdiff
sync: fix small memory leak
authorJohn Stebbins <jstebbins.hb@gmail.com>
Fri, 9 Sep 2016 22:10:19 +0000 (15:10 -0700)
committerJohn Stebbins <jstebbins.hb@gmail.com>
Fri, 9 Sep 2016 22:11:16 +0000 (15:11 -0700)
an hb_list_t was not freed at the end of an encode

libhb/sync.c

index 31e883f6de2db0ab0f41ccc67e7d940a2580deaf..7fcd716034025d768fe0dedf31ed4eb044f54065 100644 (file)
@@ -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);