mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
xwl: tidy up linked lists on destroy
This commit is contained in:
parent
41b60e1cae
commit
eabeb70081
2 changed files with 4 additions and 2 deletions
|
|
@ -58,6 +58,10 @@ void xwl_surface_destroy(struct wl_listener *listener, void *data)
|
|||
{
|
||||
struct view *view = wl_container_of(listener, view, destroy);
|
||||
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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1 @@
|
|||
leak:libfontconfig
|
||||
leak:libglib-2.0
|
||||
leak:libxcb*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue