diff --git a/river/Layout.zig b/river/Layout.zig index 3682ec1..eca3d7b 100644 --- a/river/Layout.zig +++ b/river/Layout.zig @@ -191,8 +191,8 @@ pub fn destroy(self: *Self) void { server.root.startTransaction(); } + self.layout.setHandler(?*c_void, handleRequestInert, null, null); + util.gpa.free(self.namespace); util.gpa.destroy(node); - - self.layout.setHandler(?*c_void, handleRequestInert, null, null); }