layout: fix use-after-free in destroy()
This commit is contained in:
parent
6f61ea07db
commit
9ecffe21d8
1 changed files with 2 additions and 2 deletions
|
@ -191,8 +191,8 @@ pub fn destroy(self: *Self) void {
|
||||||
server.root.startTransaction();
|
server.root.startTransaction();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
self.layout.setHandler(?*c_void, handleRequestInert, null, null);
|
||||||
|
|
||||||
util.gpa.free(self.namespace);
|
util.gpa.free(self.namespace);
|
||||||
util.gpa.destroy(node);
|
util.gpa.destroy(node);
|
||||||
|
|
||||||
self.layout.setHandler(?*c_void, handleRequestInert, null, null);
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue