summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2019-03-06 18:32:38 +0000
committerTim-Philipp Müller <tim@centricular.com>2019-03-08 01:18:39 +0000
commit6dad8b7c787c1d57e944cec681dfccf22b37fc90 (patch)
tree0caf4ced25094cbf3b4dab1c82f5f63871b776ce /tests
parent2ab238a4d06e8e20f739d770a8ad5973d00eff0a (diff)
downloadgstreamer-plugins-bad-6dad8b7c787c1d57e944cec681dfccf22b37fc90.tar.gz
closedcaption: fix leak in line21 decoder
Destroy old decoder instance when shutting down the element, and also in case the input format changes. Fix harness/pipeline leak in unit test.
Diffstat (limited to 'tests')
-rw-r--r--tests/check/elements/line21.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/check/elements/line21.c b/tests/check/elements/line21.c
index 029ff238f..02547ec5a 100644
--- a/tests/check/elements/line21.c
+++ b/tests/check/elements/line21.c
@@ -83,6 +83,7 @@ GST_START_TEST (basic)
fail_unless (out_cc_meta->data[i] == full_data[i]);
gst_buffer_unref (outbuf);
+ gst_harness_teardown (h);
}
GST_END_TEST;