mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
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:
parent
3b9791cca6
commit
3964e708e9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user