Cleanup all resources used by wayland renderer.

This commit is contained in:
Jari Vetoniemi 2014-10-25 22:16:31 +03:00
parent b391bbe608
commit 64c4bbdf98
2 changed files with 5 additions and 0 deletions

View File

@ -260,6 +260,9 @@ bm_wl_registry_destroy(struct wayland *wayland)
if (wayland->registry)
wl_registry_destroy(wayland->registry);
xkb_keymap_unref(wayland->input.xkb.keymap);
xkb_state_unref(wayland->input.xkb.state);
}
bool

View File

@ -131,6 +131,8 @@ destructor(struct bm_menu *menu)
bm_wl_window_destroy(&wayland->window);
bm_wl_registry_destroy(wayland);
xkb_context_unref(wayland->input.xkb.context);
if (wayland->display) {
wl_display_flush(wayland->display);
wl_display_disconnect(wayland->display);