wayland: free wayland/wl_window instances

This commit is contained in:
Daniel Eklöf 2019-10-27 19:16:42 +01:00
parent 6314de554d
commit 9a31c1ed96
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -619,6 +619,8 @@ wayl_destroy(struct wayland *wayl)
fdm_del(wayl->fdm, wl_display_get_fd(wayl->display));
wl_display_disconnect(wayl->display);
}
free(wayl);
}
struct wl_window *
@ -685,6 +687,7 @@ wayl_win_destroy(struct wl_window *win)
xdg_surface_destroy(win->xdg_surface);
if (win->surface != NULL)
wl_surface_destroy(win->surface);
free(win);
}
struct terminal *