Commit 3964e708 authored by David Zeuthen's avatar David Zeuthen

GDBusObjectManagerClient: Don't leak object proxy when handling D-Bus signal

It's g_object_unref(), not g_object_ref(). Ugh.

Therefore, use g_clear_object().
Signed-off-by: default avatarDavid Zeuthen <davidz@redhat.com>
parent 3b9791cc
......@@ -1089,8 +1089,7 @@ signal_cb (GDBusConnection *connection,
}
out:
if (object_proxy != NULL)
g_object_ref (object_proxy);
g_clear_object (&object_proxy);
}
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