summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Trevisan (TreviƱo) <mail@3v1n0.net>2019-05-17 19:56:31 +0000
committerMarco Trevisan <mail@3v1n0.net>2019-05-27 22:38:46 +0000
commitfc74c7def91ecf327b0ebebbd28a444cc4870c02 (patch)
tree968bcc3d9e14630067e8a86d284a5d50a7d7b128
parent9b8a3fbaedc0bb778d158426b2a7294cb0474423 (diff)
downloadmutter-fc74c7def91ecf327b0ebebbd28a444cc4870c02.tar.gz
wayland-seat: Use g_free to cleanup MetaWaylandSeat
MetaWaylandSeat is allocated using g_new0(), and thus we should use g_free() to destroy it. https://gitlab.gnome.org/GNOME/mutter/merge_requests/581 (cherry picked from commit 040578657309a515df4c73b51a068140ad477f03)
-rw-r--r--src/wayland/meta-wayland-seat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wayland/meta-wayland-seat.c b/src/wayland/meta-wayland-seat.c
index 7c86739f6..445f4c670 100644
--- a/src/wayland/meta-wayland-seat.c
+++ b/src/wayland/meta-wayland-seat.c
@@ -264,7 +264,7 @@ meta_wayland_seat_free (MetaWaylandSeat *seat)
g_object_unref (seat->touch);
meta_wayland_text_input_destroy (seat->text_input);
- g_slice_free (MetaWaylandSeat, seat);
+ g_free (seat);
}
static gboolean