diff options
| author | Jack Jamison <jackqjamison@gmail.com> | 2025-10-30 13:50:36 -0400 |
|---|---|---|
| committer | Jack Jamison <jackqjamison@gmail.com> | 2025-11-06 19:45:01 -0500 |
| commit | 34a6051bd2da964f1080bc40544341455c832707 (patch) | |
| tree | 8048627671713d3c89bae483cd5695439815952e /keyboard.c | |
| parent | 703b44d0ce3c173e04bdc93319ff7cceb8bac981 (diff) | |
fix memory leaks
Diffstat (limited to 'keyboard.c')
| -rw-r--r-- | keyboard.c | 12 |
1 files changed, 0 insertions, 12 deletions
@@ -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, |
