mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 23:23:28 +00:00
server: let the caller of sendSync free the string
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
This commit is contained in:
@@ -308,6 +308,7 @@ fn closeTarget(
|
||||
success: bool = true,
|
||||
};
|
||||
const res = try result(alloc, id orelse msg.id.?, Resp, Resp{}, null);
|
||||
defer alloc.free(res);
|
||||
try server.sendSync(ctx, res);
|
||||
|
||||
// Inspector.detached event
|
||||
|
||||
Reference in New Issue
Block a user