summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2016-03-23 11:28:52 -0600
committerJohn Stebbins <[email protected]>2016-03-23 11:28:52 -0600
commit9bb4ff4a5c13e5d8cc1a192a3b94de121212dace (patch)
treecfca20f74d77a66195c71a0a6330a9ce6d070202
parent50de7c3108c2c8513fbbddba9e5c9144a47a0431 (diff)
reader: fix memory leak
-rw-r--r--libhb/reader.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libhb/reader.c b/libhb/reader.c
index cc9836290..bb3af1945 100644
--- a/libhb/reader.c
+++ b/libhb/reader.c
@@ -327,6 +327,12 @@ static void reader_close( hb_work_object_t * w )
free( r->stream_timing );
}
+ int ii;
+ for (ii = 0; ii < r->splice_list_size; ii++)
+ {
+ hb_buffer_list_close(&r->splice_list[ii].list);
+ }
+
free(r->fifos);
free(r->splice_list);
free(r);