summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMatthew Waters <matthew@centricular.com>2020-05-05 17:15:51 +1000
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>2020-05-06 02:53:27 +0000
commitd0be6b74f2d24655c88c40b1af4e8af410c3ee10 (patch)
treea9f02dc443c437418ca5fccf5a9d170d790a77b7 /tests
parentd552c6556ccc61a56beeec89a631ecc26362c926 (diff)
downloadgstreamer-plugins-bad-d0be6b74f2d24655c88c40b1af4e8af410c3ee10.tar.gz
tests/webrtc: fix a data channel leak in a test
test_data_channel_create_after_negotiate overrides the data_channel_data without ever freeing it. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1240>
Diffstat (limited to 'tests')
-rw-r--r--tests/check/elements/webrtcbin.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/check/elements/webrtcbin.c b/tests/check/elements/webrtcbin.c
index 3473edefb..e43a4ff15 100644
--- a/tests/check/elements/webrtcbin.c
+++ b/tests/check/elements/webrtcbin.c
@@ -1781,6 +1781,7 @@ have_data_channel_create_data_channel (struct test_webrtc *t,
&another);
g_assert_nonnull (another);
t->data_channel_data = another;
+ t->data_channel_notify = (GDestroyNotify) g_object_unref;
g_signal_connect (another, "on-error",
G_CALLBACK (on_channel_error_not_reached), NULL);
}