mirror of
https://github.com/zoriya/river.git
synced 2026-06-04 11:24:51 +00:00
layout: fix use-after-free in destroy()
This commit is contained in:
+2
-2
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user