diff options
author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2018-06-01 17:07:41 +0200 |
---|---|---|
committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2018-06-04 22:41:24 +0200 |
commit | f5f38ef0079be5d1e7636daba395c38aaf887de8 (patch) | |
tree | ba870190beb3038ee60e76d677aab8459f8e0ffa | |
parent | 8051473aa9b21d1289b6a2d0b7371c4abd369ef5 (diff) | |
download | gdm-f5f38ef0079be5d1e7636daba395c38aaf887de8.tar.gz |
libgdm: Unref the manager propagated from task
This instance has already been reffed when passed to the task, and since
we're stealing it with `g_task_propagate_pointer` it won't be unreffed.
We could also do this in the `on_reauthentication_channel_opened` callback
but since the new task will ref it anyway, we can just be clean and do it
here.
-rw-r--r-- | libgdm/gdm-client.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libgdm/gdm-client.c b/libgdm/gdm-client.c index f327344e..fa4ba842 100644 --- a/libgdm/gdm-client.c +++ b/libgdm/gdm-client.c @@ -390,7 +390,7 @@ on_got_manager_for_reauthentication (GdmClient *client, (GAsyncReadyCallback) on_reauthentication_channel_opened, task); - + g_object_unref (manager); } static GDBusConnection * @@ -527,6 +527,8 @@ on_got_manager_for_opening_connection (GdmClient *client, (GAsyncReadyCallback) on_session_opened, task); + + g_object_unref (manager); } static GDBusConnection * |