Commit 58b7f4e7 authored by Miloslav Trmač's avatar Miloslav Trmač Committed by Ray Strode

Fix a memory leak on agent authentication cancellation

(This is cancellation by the daemon, possibly requested by the client, not by the agent.) 's avatarMiloslav Trmač <>
parent 54c19b05
......@@ -2437,13 +2437,18 @@ authentication_agent_cancel_cb (GDBusProxy *proxy,
GAsyncResult *res,
gpointer user_data)
GVariant *result;
GError *error;
error = NULL;
if (!g_dbus_proxy_call_finish (proxy, res, &error))
result = g_dbus_proxy_call_finish (proxy, res, &error);
if (result == NULL)
g_printerr ("Error cancelling authentication: %s\n", error->message);
g_error_free (error);
g_variant_unref (result);
static void
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment