diff options
author | Thomas Haller <thaller@redhat.com> | 2019-10-02 09:18:01 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2019-10-02 09:18:01 +0200 |
commit | 819c903543182593436b915ebdcc149d0f182567 (patch) | |
tree | b371db9ba8e22a1fc76f77d5808c5ec8d126b94b | |
parent | 5a91900f8bd71f334c13a58b81f1d22fe02345e8 (diff) | |
download | NetworkManager-819c903543182593436b915ebdcc149d0f182567.tar.gz |
libnm/secret-agent-old: steal pointer instead of taking additional reference
-rw-r--r-- | libnm/nm-secret-agent-old.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libnm/nm-secret-agent-old.c b/libnm/nm-secret-agent-old.c index 9fa977e9aa..c20bccc93d 100644 --- a/libnm/nm-secret-agent-old.c +++ b/libnm/nm-secret-agent-old.c @@ -1017,7 +1017,8 @@ init_async_got_proxy (GObject *object, GAsyncResult *result, gpointer user_data) nm_secret_agent_old_register_async (self, g_task_get_cancellable (task), init_async_registered, - g_object_ref (task)); + task); + g_steal_pointer (&task); } static void @@ -1041,7 +1042,8 @@ init_async_got_bus (GObject *initable, GAsyncResult *result, gpointer user_data) NM_DBUS_PATH_AGENT_MANAGER, g_task_get_cancellable (task), init_async_got_proxy, - g_object_ref (task)); + task); + g_steal_pointer (&task); } /*****************************************************************************/ |