launcher: Fix unrefing seat_proxy

When using meta-laucher headlessly, there isn't a seat_proxy.
In that context, doing directly g_object_unref gives an error.
This commit fixes it.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3249>
This commit is contained in:
Joan Torres 2023-09-06 10:56:43 +02:00 committed by Marge Bot
parent bc74d166dd
commit 33eef7211a

View File

@ -445,8 +445,8 @@ void
meta_launcher_free (MetaLauncher *self) meta_launcher_free (MetaLauncher *self)
{ {
g_free (self->seat_id); g_free (self->seat_id);
g_object_unref (self->seat_proxy); g_clear_object (&self->seat_proxy);
g_object_unref (self->session_proxy); g_clear_object (&self->session_proxy);
g_free (self); g_free (self);
} }