mirror of
https://github.com/brl/mutter.git
synced 2025-06-14 01:09:30 +00:00
src: Stop using GSlice
It has been inofficially deprecated for years, is known to cause issues with valgrind and potentially hides memory corruption. Lets stop using it. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1512>
This commit is contained in:
@ -99,7 +99,7 @@ meta_wayland_pointer_client_new (void)
|
||||
{
|
||||
MetaWaylandPointerClient *pointer_client;
|
||||
|
||||
pointer_client = g_slice_new0 (MetaWaylandPointerClient);
|
||||
pointer_client = g_new0 (MetaWaylandPointerClient, 1);
|
||||
wl_list_init (&pointer_client->pointer_resources);
|
||||
wl_list_init (&pointer_client->swipe_gesture_resources);
|
||||
wl_list_init (&pointer_client->pinch_gesture_resources);
|
||||
@ -138,7 +138,7 @@ meta_wayland_pointer_client_free (MetaWaylandPointerClient *pointer_client)
|
||||
wl_list_init (wl_resource_get_link (resource));
|
||||
}
|
||||
|
||||
g_slice_free (MetaWaylandPointerClient, pointer_client);
|
||||
g_free (pointer_client);
|
||||
}
|
||||
|
||||
static gboolean
|
||||
|
Reference in New Issue
Block a user