2af436bb9c
This fixes ASan report: SUMMARY: AddressSanitizer: 151360 byte(s) leaked in 451 allocation(s). The leaks can be observed if you let weston-desktop-shell start fully before shutting down Weston. Many simple test suite tests are too fast to hit this, or do not even use desktop-shell. This clean-up code is copied from keyboard_handle_keymap(). Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>