webrtc: tests: Fix a few memory leaks
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/9151>
This commit is contained in:
parent
f6cc177dab
commit
dac375ab7a
@ -1531,6 +1531,9 @@ GST_START_TEST (test_no_nice_elements_request_pad)
|
||||
gst_registry_add_feature (registry, nicesrc);
|
||||
if (nicesink)
|
||||
gst_registry_add_feature (registry, nicesink);
|
||||
|
||||
gst_clear_object (&nicesrc);
|
||||
gst_clear_object (&nicesink);
|
||||
}
|
||||
|
||||
GST_END_TEST;
|
||||
@ -1563,6 +1566,9 @@ GST_START_TEST (test_no_nice_elements_state_change)
|
||||
gst_registry_add_feature (registry, nicesrc);
|
||||
if (nicesink)
|
||||
gst_registry_add_feature (registry, nicesink);
|
||||
|
||||
gst_clear_object (&nicesrc);
|
||||
gst_clear_object (&nicesink);
|
||||
}
|
||||
|
||||
GST_END_TEST;
|
||||
@ -6940,18 +6946,13 @@ webrtcbin_suite (void)
|
||||
dtlssrtpdec);
|
||||
}
|
||||
|
||||
if (nicesrc)
|
||||
gst_object_unref (nicesrc);
|
||||
if (nicesink)
|
||||
gst_object_unref (nicesink);
|
||||
if (dtlssrtpdec)
|
||||
gst_object_unref (dtlssrtpdec);
|
||||
if (dtlssrtpenc)
|
||||
gst_object_unref (dtlssrtpenc);
|
||||
if (sctpenc)
|
||||
gst_object_unref (sctpenc);
|
||||
if (sctpdec)
|
||||
gst_object_unref (sctpdec);
|
||||
gst_clear_object (&nicesrc);
|
||||
gst_clear_object (&nicesink);
|
||||
gst_clear_object (&dtlssrtpdec);
|
||||
gst_clear_object (&dtlssrtpenc);
|
||||
gst_clear_object (&sctpenc);
|
||||
gst_clear_object (&sctpdec);
|
||||
gst_clear_object (&vp8enc);
|
||||
|
||||
suite_add_tcase (s, tc);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user