wayland: Fix refcount error

The Meta.WaylandClient constructor receives a GSubprocessLauncher
as a parameter, and stores it internally. Unfortunately, its
refcount value isn't increased, which results in the object being
released twice.

This patch fixes this bug.

Fix https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1454
This commit is contained in:
Sergio Costas 2020-09-28 20:39:41 +02:00 committed by Robert Mader
parent 544b92d15a
commit 533882ab77

View File

@ -129,7 +129,7 @@ meta_wayland_client_new (GSubprocessLauncher *launcher,
} }
client = g_object_new (META_TYPE_WAYLAND_CLIENT, NULL); client = g_object_new (META_TYPE_WAYLAND_CLIENT, NULL);
client->launcher = launcher; client->launcher = g_object_ref (launcher);
return client; return client;
} }