diff options
| author | Isaac Freund <ifreund@ifreund.xyz> | 2020-06-19 14:48:28 +0200 |
|---|---|---|
| committer | Isaac Freund <ifreund@ifreund.xyz> | 2020-06-19 14:48:28 +0200 |
| commit | 2ef8261493f7f400346cb9ab5f62cd4558f6fec9 (patch) | |
| tree | 5a896a9afa8f78d9d10e001ea2aec2c86284902f | |
| parent | 12d34d4ded96c3499c7fc3572bee5b91a00b8d48 (diff) | |
| download | river-2ef8261493f7f400346cb9ab5f62cd4558f6fec9.tar.gz river-2ef8261493f7f400346cb9ab5f62cd4558f6fec9.tar.xz | |
river-status: fix memory leak
| -rw-r--r-- | river/SeatStatus.zig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/river/SeatStatus.zig b/river/SeatStatus.zig index 230a196..561adef 100644 --- a/river/SeatStatus.zig +++ b/river/SeatStatus.zig @@ -53,6 +53,7 @@ fn handleResourceDestroy(wl_resource: ?*c.wl_resource) callconv(.C) void { const self = util.voidCast(Self, c.wl_resource_get_user_data(wl_resource).?); const node = @fieldParentPtr(std.SinglyLinkedList(Self).Node, "data", self); self.seat.status_trackers.remove(node); + util.gpa.destroy(node); } fn destroy(wl_client: ?*c.wl_client, wl_resource: ?*c.wl_resource) callconv(.C) void { |
