From f3024d919834ee5fbd1ec4467f83d1a463d64a03 Mon Sep 17 00:00:00 2001 From: Isaac Freund Date: Mon, 14 Jun 2021 22:55:10 +0000 Subject: [PATCH] decoration: remove listeners on destroy --- river/Decoration.zig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/river/Decoration.zig b/river/Decoration.zig index b2e1433..67bf5c2 100644 --- a/river/Decoration.zig +++ b/river/Decoration.zig @@ -47,6 +47,8 @@ fn handleDestroy( xdg_toplevel_decoration: *wlr.XdgToplevelDecorationV1, ) void { const self = @fieldParentPtr(Self, "destroy", listener); + self.destroy.link.remove(); + self.request_mode.link.remove(); util.gpa.destroy(self); }