From d0be6b74f2d24655c88c40b1af4e8af410c3ee10 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Tue, 5 May 2020 17:15:51 +1000 Subject: [PATCH] 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: --- tests/check/elements/webrtcbin.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/check/elements/webrtcbin.c b/tests/check/elements/webrtcbin.c index 3473ede..e43a4ff 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); } -- 2.7.4