mirror of
https://github.com/brl/mutter.git
synced 2024-12-25 04:22:05 +00:00
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:
parent
544b92d15a
commit
533882ab77
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user