From 5cafd748e34b108833204ace9b24c6d7d17cf836 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Tue, 15 Dec 2020 11:51:22 +0000 Subject: [PATCH] tests: Remove incorrect unref from tls-bindings tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `g_tls_backend_get_default()` does not return a reference to the backend, so don’t drop one. Signed-off-by: Philip Withnall --- gio/tests/tls-bindings.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/gio/tests/tls-bindings.c b/gio/tests/tls-bindings.c index 89890248a..681b658c7 100644 --- a/gio/tests/tls-bindings.c +++ b/gio/tests/tls-bindings.c @@ -40,7 +40,6 @@ get_tls_channel_binding (void) G_TLS_CHANNEL_BINDING_TLS_UNIQUE, NULL, (GError **)¬_null)); g_object_unref (tls); - g_object_unref (backend); g_test_trap_subprocess (NULL, 0, 0); g_test_trap_assert_failed (); g_test_trap_assert_stderr ("*GLib-GIO-CRITICAL*"); @@ -76,7 +75,6 @@ get_dtls_channel_binding (void) G_TLS_CHANNEL_BINDING_TLS_UNIQUE, NULL, (GError **)¬_null)); g_object_unref (dtls); - g_object_unref (backend); g_test_trap_subprocess (NULL, 0, 0); g_test_trap_assert_failed (); g_test_trap_assert_stderr ("*GLib-GIO-CRITICAL*");