From 247b17c0832d2fa7e97e278ee7ddce655e503c49 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Mon, 15 Feb 2021 12:07:15 +0000 Subject: [PATCH] tests: rtspclientsink: fix some leaks Part-of: --- tests/check/gst/rtspclientsink.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/check/gst/rtspclientsink.c b/tests/check/gst/rtspclientsink.c index c3e95b1..63e799e 100644 --- a/tests/check/gst/rtspclientsink.c +++ b/tests/check/gst/rtspclientsink.c @@ -214,6 +214,7 @@ GST_START_TEST (test_record) gst_element_set_state (pipeline, GST_STATE_NULL); gst_object_unref (pipeline); + gst_object_unref (bus); } iterate (); @@ -227,9 +228,12 @@ GST_START_TEST (test_record) g_signal_emit_by_name (G_OBJECT (server_sink), "pull-sample", &sample); GST_INFO ("%2d recv sample: %p", i, sample); - if (sample) + if (sample) { gst_sample_unref (sample); + sample = NULL; + } } + gst_object_unref (server_sink); /* clean up and iterate so the clean-up can finish */ stop_server (); -- 2.7.4