mirror of
https://github.com/brl/mutter.git
synced 2024-11-23 08:30:42 -05:00
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:
parent
bc74d166dd
commit
33eef7211a
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user