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: David Zeuthen <davidz@redhat.com>
This commit is contained in:
David Zeuthen 2012-04-17 17:48:08 -04:00
parent 3b9791cca6
commit 3964e708e9

View File

@ -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