Blame 0001-wayland-seat-Use-g_free-to-cleanup-MetaWaylandSeat.patch

4c22184
From fc74c7def91ecf327b0ebebbd28a444cc4870c02 Mon Sep 17 00:00:00 2001
4c22184
From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= <mail@3v1n0.net>
4c22184
Date: Fri, 17 May 2019 19:56:31 +0000
4c22184
Subject: [PATCH 01/28] wayland-seat: Use g_free to cleanup MetaWaylandSeat
4c22184
4c22184
MetaWaylandSeat is allocated using g_new0(), and thus we should use g_free() to
4c22184
destroy it.
4c22184
4c22184
https://gitlab.gnome.org/GNOME/mutter/merge_requests/581
4c22184
4c22184
4c22184
(cherry picked from commit 040578657309a515df4c73b51a068140ad477f03)
4c22184
---
4c22184
 src/wayland/meta-wayland-seat.c | 2 +-
4c22184
 1 file changed, 1 insertion(+), 1 deletion(-)
4c22184
4c22184
diff --git a/src/wayland/meta-wayland-seat.c b/src/wayland/meta-wayland-seat.c
4c22184
index 7c86739f6..445f4c670 100644
4c22184
--- a/src/wayland/meta-wayland-seat.c
4c22184
+++ b/src/wayland/meta-wayland-seat.c
4c22184
@@ -264,7 +264,7 @@ meta_wayland_seat_free (MetaWaylandSeat *seat)
4c22184
   g_object_unref (seat->touch);
4c22184
   meta_wayland_text_input_destroy (seat->text_input);
4c22184
 
4c22184
-  g_slice_free (MetaWaylandSeat, seat);
4c22184
+  g_free (seat);
4c22184
 }
4c22184
 
4c22184
 static gboolean
4c22184
-- 
4c22184
2.21.0
4c22184