From: Tim-Philipp Müller Date: Mon, 15 Feb 2021 12:07:15 +0000 (+0000) Subject: tests: rtspclientsink: fix some leaks X-Git-Tag: 1.19.3~495^2~16 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=247b17c0832d2fa7e97e278ee7ddce655e503c49;p=platform%2Fupstream%2Fgstreamer.git tests: rtspclientsink: fix some leaks Part-of: --- 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 ();