[glib: 4/5] tests: Remove incorrect unref from tls-bindings tests
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 4/5] tests: Remove incorrect unref from tls-bindings tests
- Date: Wed, 20 Jan 2021 13:15:27 +0000 (UTC)
commit 5cafd748e34b108833204ace9b24c6d7d17cf836
Author: Philip Withnall <pwithnall endlessos org>
Date: Tue Dec 15 11:51:22 2020 +0000
tests: Remove incorrect unref from tls-bindings tests
`g_tls_backend_get_default()` does not return a reference to the
backend, so don’t drop one.
Signed-off-by: Philip Withnall <pwithnall endlessos org>
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*");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]