Removed acquire/release of keymaps, which isn't needed internally.

This commit is contained in:
Sam Lantinga
2024-08-05 18:19:39 -07:00
parent a13c993e40
commit ac7df9d01f
4 changed files with 6 additions and 26 deletions

View File

@@ -1185,7 +1185,7 @@ static void Wayland_UpdateKeymap(struct SDL_WaylandInput *input)
keymap.state = WAYLAND_xkb_state_new(input->xkb.keymap);
if (!keymap.state) {
SDL_SetError("failed to create XKB state");
SDL_ReleaseKeymap(keymap.keymap);
SDL_DestroyKeymap(keymap.keymap);
return;
}