[mutter/gnome-3-32] wayland-seat: Use g_free to cleanup MetaWaylandSeat
- From: Marco Trevisan <marcotrevi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/gnome-3-32] wayland-seat: Use g_free to cleanup MetaWaylandSeat
- Date: Mon, 27 May 2019 22:37:53 +0000 (UTC)
commit 15803b955840b5c99080da98540c44f12322a400
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date: Fri May 17 19:56:31 2019 +0000
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)
src/wayland/meta-wayland-seat.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/wayland/meta-wayland-seat.c b/src/wayland/meta-wayland-seat.c
index 0de075275..91fe376ff 100644
--- a/src/wayland/meta-wayland-seat.c
+++ b/src/wayland/meta-wayland-seat.c
@@ -266,7 +266,7 @@ meta_wayland_seat_free (MetaWaylandSeat *seat)
meta_wayland_gtk_text_input_destroy (seat->gtk_text_input);
meta_wayland_text_input_destroy (seat->text_input);
- g_slice_free (MetaWaylandSeat, seat);
+ g_free (seat);
}
static gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]