diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2017-12-15 11:40:13 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2017-12-15 16:14:43 +0200 |
commit | c55824e4fab835f20d1caa463d166e40e5d4d545 (patch) | |
tree | ae69c434596fd5bb429c60cee1fe521901b7c91d /tests | |
parent | 694c07fe63ed47138f8c1d80dadb96c63ffa7f6c (diff) |
matroskamux: Fix various memory leaks in the unit test
https://bugzilla.gnome.org/show_bug.cgi?id=790686
Diffstat (limited to 'tests')
-rw-r--r-- | tests/check/elements/matroskamux.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/check/elements/matroskamux.c b/tests/check/elements/matroskamux.c index 23e56d96d..8f3a053cb 100644 --- a/tests/check/elements/matroskamux.c +++ b/tests/check/elements/matroskamux.c @@ -347,6 +347,8 @@ GST_START_TEST (test_timecodescale) compare_buffer_to_data (outbuffer, data_h1, sizeof (data_h1)); gst_buffer_unref (outbuffer); gst_buffer_unref (gst_harness_pull (h)); + + gst_harness_teardown (h); } GST_END_TEST; @@ -592,6 +594,7 @@ check_chapter (GstTocEntry * toc_entry, GstTocEntry * internal_toc_entry, if (gst_tag_list_get_tag_size (tags, GST_TAG_TITLE) > 0) { gst_tag_list_get_string_index (tags, GST_TAG_TITLE, 0, &title); fail_unless (memcmp (info->data + *index, title, strlen (title)) == 0); + g_free (title); } *index += len; @@ -743,6 +746,7 @@ find_and_check_tags (GstToc * ref_toc, GstToc * internal_toc, GstMapInfo * info, fail_unless (gst_tag_list_get_tag_size (tags, tag_type) > 0); gst_tag_list_get_string_index (tags, tag_type, 0, &cur_tag_string); fail_unless (g_strcmp0 (cur_tag_string, tag_string) == 0); + g_free (cur_tag_string); } static void @@ -970,6 +974,7 @@ test_toc (gboolean with_edition) gst_toc_unref (ref_toc); gst_buffer_unmap (merged_buffer, &info); + gst_buffer_unref (merged_buffer); gst_harness_teardown (h); } |