summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libhb/avfilter.c2
-rw-r--r--libhb/reader.c5
2 files changed, 5 insertions, 2 deletions
diff --git a/libhb/avfilter.c b/libhb/avfilter.c
index a865d6305..c94a851da 100644
--- a/libhb/avfilter.c
+++ b/libhb/avfilter.c
@@ -235,6 +235,7 @@ fail:
avfilter_inout_free(&in);
avfilter_inout_free(&out);
avfilter_graph_free(&pv->graph);
+ free(pv->settings);
free(pv);
return 1;
@@ -318,6 +319,7 @@ static void avfilter_close( hb_filter_object_t * filter )
return;
}
+ hb_buffer_list_close(&pv->list);
av_frame_free(&pv->frame);
avfilter_graph_free(&pv->graph);
free(pv->settings);
diff --git a/libhb/reader.c b/libhb/reader.c
index d91c92c24..78a302d7e 100644
--- a/libhb/reader.c
+++ b/libhb/reader.c
@@ -327,8 +327,9 @@ static void reader_close( hb_work_object_t * w )
free( r->stream_timing );
}
- free( r->fifos );
- free( r );
+ free(r->fifos);
+ free(r->splice_list);
+ free(r);
}
static hb_buffer_t * splice_discontinuity( hb_work_private_t *r, hb_buffer_t *buf )