summaryrefslogtreecommitdiff
path: root/libgdm/gdm-client.c
diff options
context:
space:
mode:
authorIain Lane <iainl@gnome.org>2018-05-14 16:32:25 -0400
committerRay Strode <rstrode@redhat.com>2018-05-15 17:08:30 -0400
commite5593c524c1cfbfe68b14dbad6041b1a27418d8b (patch)
treeaefcbf87cb3515d51b1cc68a520e177b0d2a7395 /libgdm/gdm-client.c
parent0be3d17485219305716949666f9a907a69199cc4 (diff)
downloadgdm-e5593c524c1cfbfe68b14dbad6041b1a27418d8b.tar.gz
libgdm: Drop weak refs on the GDBusConnectionwip/weak-ref-removal
The GDBusProxies hold a strong reference to the connection themselves, so maintaining separate weak references is unnecessary. This commit drops those extraneous weak references. https://bugzilla.gnome.org/show_bug.cgi?id=795940
Diffstat (limited to 'libgdm/gdm-client.c')
-rw-r--r--libgdm/gdm-client.c47
1 files changed, 0 insertions, 47 deletions
diff --git a/libgdm/gdm-client.c b/libgdm/gdm-client.c
index e7b93e38..f327344e 100644
--- a/libgdm/gdm-client.c
+++ b/libgdm/gdm-client.c
@@ -652,13 +652,6 @@ gdm_client_open_reauthentication_channel_sync (GdmClient *client,
cancellable,
error);
- if (user_verifier != NULL) {
- g_object_weak_ref (G_OBJECT (user_verifier),
- (GWeakNotify)
- g_object_unref,
- connection);
- }
-
out:
return user_verifier;
}
@@ -763,12 +756,6 @@ gdm_client_get_user_verifier_sync (GdmClient *client,
g_object_add_weak_pointer (G_OBJECT (client->priv->user_verifier),
(gpointer *)
&client->priv->user_verifier);
- g_object_ref (connection);
- g_object_weak_ref (G_OBJECT (client->priv->user_verifier),
- (GWeakNotify)
- g_object_unref,
- client->priv->connection);
-
if (client->priv->enabled_extensions != NULL) {
gboolean res;
@@ -908,11 +895,6 @@ gdm_client_get_user_verifier_finish (GdmClient *client,
(gpointer *)
&client->priv->user_verifier);
- g_object_weak_ref (G_OBJECT (client->priv->user_verifier),
- (GWeakNotify)
- g_object_unref,
- client->priv->connection);
-
return user_verifier;
}
@@ -1081,10 +1063,6 @@ gdm_client_get_greeter_finish (GdmClient *client,
(gpointer *)
&client->priv->greeter);
- g_object_weak_ref (G_OBJECT (client->priv->greeter),
- (GWeakNotify)
- g_object_unref,
- client->priv->connection);
return greeter;
}
@@ -1129,10 +1107,6 @@ gdm_client_get_greeter_sync (GdmClient *client,
g_object_add_weak_pointer (G_OBJECT (client->priv->greeter),
(gpointer *)
&client->priv->greeter);
- g_object_weak_ref (G_OBJECT (client->priv->greeter),
- (GWeakNotify)
- g_object_unref,
- client->priv->connection);
query_for_timed_login_requested_signal (client->priv->greeter);
}
@@ -1263,11 +1237,6 @@ gdm_client_get_remote_greeter_finish (GdmClient *client,
(gpointer *)
&client->priv->remote_greeter);
- g_object_weak_ref (G_OBJECT (client->priv->remote_greeter),
- (GWeakNotify)
- g_object_unref,
- client->priv->connection);
-
return remote_greeter;
}
@@ -1311,11 +1280,6 @@ gdm_client_get_remote_greeter_sync (GdmClient *client,
g_object_add_weak_pointer (G_OBJECT (client->priv->remote_greeter),
(gpointer *)
&client->priv->remote_greeter);
- g_object_ref (connection);
- g_object_weak_ref (G_OBJECT (client->priv->remote_greeter),
- (GWeakNotify)
- g_object_unref,
- client->priv->connection);
}
return client->priv->remote_greeter;
@@ -1444,12 +1408,6 @@ gdm_client_get_chooser_finish (GdmClient *client,
(gpointer *)
&client->priv->chooser);
- g_object_ref (connection);
- g_object_weak_ref (G_OBJECT (client->priv->chooser),
- (GWeakNotify)
- g_object_unref,
- client->priv->connection);
-
return chooser;
}
@@ -1493,11 +1451,6 @@ gdm_client_get_chooser_sync (GdmClient *client,
g_object_add_weak_pointer (G_OBJECT (client->priv->chooser),
(gpointer *)
&client->priv->chooser);
- g_object_ref (connection);
- g_object_weak_ref (G_OBJECT (client->priv->chooser),
- (GWeakNotify)
- g_object_unref,
- client->priv->connection);
}
return client->priv->chooser;