summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2016-03-06 10:17:09 -0700
committerJohn Stebbins <[email protected]>2016-03-06 10:17:09 -0700
commit32db54e4729f7e84e1cbce92000ec280bf7a254a (patch)
tree7610ea1c535149548b24afbb70185e531bb65e2a
parentc70164206ec34815c2565f34749493e056975c74 (diff)
libhb: fix memory leaks
-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 )