From 34a6051bd2da964f1080bc40544341455c832707 Mon Sep 17 00:00:00 2001 From: Jack Jamison Date: Thu, 30 Oct 2025 13:50:36 -0400 Subject: fix memory leaks --- keyboard.c | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'keyboard.c') diff --git a/keyboard.c b/keyboard.c index 470fd11..3836333 100644 --- a/keyboard.c +++ b/keyboard.c @@ -56,18 +56,6 @@ void wl_keyboard_keymap(void *data, struct wl_keyboard *wl_keyboard, state->exit_code = EXIT_FAILURE; return; } - - struct xkb_compose_table* xkb_compose_table = xkb_compose_table_new_from_locale( - state->xkb_context, setlocale(LC_CTYPE, NULL), XKB_COMPOSE_COMPILE_NO_FLAGS); - - if (!xkb_compose_table) { - fprintf(stderr, "Failed to create xkb compose table"); - state->running = false; - state->exit_code = EXIT_FAILURE; - return; - } - - state->xkb_compose_state = xkb_compose_state_new(xkb_compose_table, XKB_COMPOSE_STATE_NO_FLAGS); } void wl_keyboard_enter(void *data, struct wl_keyboard *wl_keyboard, -- cgit v1.2.3