From 491fa291fabd79ff10d8183dcb9ad38a4865b2e3 Mon Sep 17 00:00:00 2001 From: Silvan Jegen Date: Sun, 22 May 2022 14:18:06 +0200 Subject: [PATCH] Free input_relay --- dwl.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dwl.c b/dwl.c index 4e8f3f2..a7f94f7 100644 --- a/dwl.c +++ b/dwl.c @@ -765,6 +765,11 @@ chvt(const Arg *arg) wlr_session_change_vt(wlr_backend_get_session(backend), arg->ui); } +static void +destroy_input_relay(struct dwl_input_method_relay *relay) { + free(relay); +} + void cleanup(void) { @@ -779,6 +784,8 @@ cleanup(void) wlr_output_layout_destroy(output_layout); wlr_seat_destroy(seat); wl_display_destroy(dpy); + + destroy_input_relay(input_relay); } void