From 50296daa46ffa300e1fdb60346a87074045078a8 Mon Sep 17 00:00:00 2001 From: mojyack Date: Sat, 2 Sep 2023 14:08:55 +0900 Subject: [PATCH] fix missing initializations in previous commit Signed-off-by: Maarten van Gompel --- main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.c b/main.c index 5bfefe1..82ec700 100644 --- a/main.c +++ b/main.c @@ -283,6 +283,7 @@ seat_handle_capabilities(void *data, struct wl_seat *wl_seat, } else { if (pointer != NULL) { wl_pointer_destroy(pointer); + pointer = NULL; } } if ((caps & WL_SEAT_CAPABILITY_TOUCH)) { @@ -293,6 +294,7 @@ seat_handle_capabilities(void *data, struct wl_seat *wl_seat, } else { if (touch != NULL) { wl_touch_destroy(touch); + touch = NULL; } } }