mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
wayland: free wayland/wl_window instances
This commit is contained in:
parent
6314de554d
commit
9a31c1ed96
1 changed files with 3 additions and 0 deletions
|
|
@ -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 *
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue