[glib/wip/gcleanup] gdbusserver: Simpler reffing of new connections
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/gcleanup] gdbusserver: Simpler reffing of new connections
- Date: Sat, 9 Nov 2013 19:56:16 +0000 (UTC)
commit 10c8c9457b9caa916317f0f743cea06406c5c9d9
Author: Stef Walter <stefw gnome org>
Date: Sat Nov 9 20:15:26 2013 +0100
gdbusserver: Simpler reffing of new connections
gio/gdbusserver.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gio/gdbusserver.c b/gio/gdbusserver.c
index 43cc9ba..96d1893 100644
--- a/gio/gdbusserver.c
+++ b/gio/gdbusserver.c
@@ -932,7 +932,6 @@ emit_new_connection_in_idle (gpointer user_data)
if (claimed)
g_dbus_connection_start_message_processing (data->connection);
- g_object_unref (data->connection);
return FALSE;
}
@@ -1004,7 +1003,7 @@ on_run (GSocketService *service,
data = g_new0 (EmitIdleData, 1);
data->server = g_object_ref (server);
- data->connection = g_object_ref (connection);
+ data->connection = connection;
idle_source = g_idle_source_new ();
g_source_set_priority (idle_source, G_PRIORITY_DEFAULT);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]