xwl: tidy up linked lists on destroy

This commit is contained in:
Johan Malm 2020-08-19 20:52:27 +01:00
parent 41b60e1cae
commit eabeb70081
2 changed files with 4 additions and 2 deletions

View file

@ -58,6 +58,10 @@ void xwl_surface_destroy(struct wl_listener *listener, void *data)
{ {
struct view *view = wl_container_of(listener, view, destroy); struct view *view = wl_container_of(listener, view, destroy);
wl_list_remove(&view->link); wl_list_remove(&view->link);
wl_list_remove(&view->map.link);
wl_list_remove(&view->unmap.link);
wl_list_remove(&view->destroy.link);
wl_list_remove(&view->request_configure.link);
free(view); free(view);
} }

View file

@ -1,3 +1 @@
leak:libfontconfig
leak:libglib-2.0
leak:libxcb* leak:libxcb*