From ff71bed31c42a27a1505507a91717caa86f5fbec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Sat, 18 Apr 2015 12:28:15 +0100 Subject: [PATCH] tests: protection: fix leak in unit test --- tests/check/gst/gstprotection.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/check/gst/gstprotection.c b/tests/check/gst/gstprotection.c index 74c869db88..5a4fa2f210 100644 --- a/tests/check/gst/gstprotection.c +++ b/tests/check/gst/gstprotection.c @@ -202,6 +202,8 @@ GST_START_TEST (test_decryptor_element_class) selected_id = gst_protection_select_system (&sys_ids[3]); fail_unless (selected_id == NULL); + + gst_object_unref (elem); } GST_END_TEST;