mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-13 12:51:16 +00:00
tests: rtspclientsink: fix some leaks
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-rtsp-server/-/merge_requests/190>
This commit is contained in:
parent
8c496762f4
commit
247b17c083
1 changed files with 5 additions and 1 deletions
|
@ -214,6 +214,7 @@ GST_START_TEST (test_record)
|
||||||
|
|
||||||
gst_element_set_state (pipeline, GST_STATE_NULL);
|
gst_element_set_state (pipeline, GST_STATE_NULL);
|
||||||
gst_object_unref (pipeline);
|
gst_object_unref (pipeline);
|
||||||
|
gst_object_unref (bus);
|
||||||
}
|
}
|
||||||
|
|
||||||
iterate ();
|
iterate ();
|
||||||
|
@ -227,9 +228,12 @@ GST_START_TEST (test_record)
|
||||||
|
|
||||||
g_signal_emit_by_name (G_OBJECT (server_sink), "pull-sample", &sample);
|
g_signal_emit_by_name (G_OBJECT (server_sink), "pull-sample", &sample);
|
||||||
GST_INFO ("%2d recv sample: %p", i, sample);
|
GST_INFO ("%2d recv sample: %p", i, sample);
|
||||||
if (sample)
|
if (sample) {
|
||||||
gst_sample_unref (sample);
|
gst_sample_unref (sample);
|
||||||
|
sample = NULL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
gst_object_unref (server_sink);
|
||||||
|
|
||||||
/* clean up and iterate so the clean-up can finish */
|
/* clean up and iterate so the clean-up can finish */
|
||||||
stop_server ();
|
stop_server ();
|
||||||
|
|
Loading…
Reference in a new issue