destroy shm, pointer, keyboard, touch and seat on exit

This commit is contained in:
Christian Rauch 2020-06-23 01:41:36 +01:00
parent 7baece632f
commit 5c303cc116
1 changed files with 15 additions and 0 deletions

View File

@ -882,6 +882,21 @@ main(int argc, char **argv)
if (display.cursor_theme)
wl_cursor_theme_destroy(display.cursor_theme);
if (display.shm)
wl_shm_destroy(display.shm);
if (display.pointer)
wl_pointer_destroy(display.pointer);
if (display.keyboard)
wl_keyboard_destroy(display.keyboard);
if (display.touch)
wl_touch_destroy(display.touch);
if (display.seat)
wl_seat_destroy(display.seat);
if (display.wm_base)
xdg_wm_base_destroy(display.wm_base);