diff options
author | Tim-Philipp Müller <tim@centricular.com> | 2021-02-15 12:07:15 +0000 |
---|---|---|
committer | GStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org> | 2021-02-15 12:46:22 +0000 |
commit | 247b17c0832d2fa7e97e278ee7ddce655e503c49 (patch) | |
tree | bb474c9a23821560fc1bd51f65448cd4490d7e66 | |
parent | 8c496762f44562ec68c5deffa98f0c8623bb4179 (diff) |
tests: rtspclientsink: fix some leaks
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-rtsp-server/-/merge_requests/190>
-rw-r--r-- | tests/check/gst/rtspclientsink.c | 6 |
1 files changed, 5 insertions, 1 deletions
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 (); |