mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-09 12:25:48 +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:
|
out:
|
||||||
if (object_proxy != NULL)
|
g_clear_object (&object_proxy);
|
||||||
g_object_ref (object_proxy);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
x
Reference in New Issue
Block a user