]> git.mdlowis.com Git - proto/labwc.git/commitdiff
xwl: tidy up linked lists on destroy
authorJohan Malm <jgm323@gmail.com>
Wed, 19 Aug 2020 19:52:27 +0000 (20:52 +0100)
committerJohan Malm <jgm323@gmail.com>
Wed, 19 Aug 2020 19:52:27 +0000 (20:52 +0100)
src/xwl.c
tools/asan_suppressions.txt

index 6e81c6cc6da254542785764bbcc6325e4b3201e3..212ad4231d268178bd4872f0473dcaccf60454b4 100644 (file)
--- a/src/xwl.c
+++ b/src/xwl.c
@@ -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);
 }
 
index 0e14a2054f4d8863850c01b7851217604b54f69c..49c9e58e0859aff2053732fcf515eaf98507fe70 100644 (file)
@@ -1,3 +1 @@
-leak:libfontconfig
-leak:libglib-2.0
 leak:libxcb*