ui: fix memory leak destroying xkbcommon objects