[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
From: |
Gavin D. Smith |
Date: |
Sun, 20 Mar 2022 04:55:20 -0400 (EDT) |
branch: master
commit cda11cef87838a2eebd9d9de5a94e68aa82eecd0
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Thu Oct 17 12:51:19 2019 +0100
call g_object_unref
---
js/infog/main.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/js/infog/main.c b/js/infog/main.c
index cc8f6631f6..50f1c41c94 100644
--- a/js/infog/main.c
+++ b/js/infog/main.c
@@ -345,8 +345,7 @@ initialize_web_extensions (WebKitWebContext *context,
err = 0;
GSocketAddress *address = g_unix_socket_address_new (socket_file);
- g_socket_bind (gsocket, address, FALSE, &err);
- if (!gsocket)
+ if (!g_socket_bind (gsocket, address, FALSE, &err))
{
g_print ("bind socket: %s\n", err->message);
gtk_main_quit ();
@@ -356,6 +355,7 @@ initialize_web_extensions (WebKitWebContext *context,
GSource *gsource = g_socket_create_source (gsocket, G_IO_IN, NULL);
g_source_set_callback (gsource, (GSourceFunc)(socket_cb), NULL, NULL);
g_source_attach (gsource, NULL);
+ g_object_unref (address);
atexit (&remove_socket);
}
- [no subject], (continued)
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject],
Gavin D. Smith <=
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20