river-control: update zig-wayland to fix leak

It was forgotten to destroy the callback server side object when sending
the destructor event. With the new zig-wayland version, this cannot be
forgotten.
This commit is contained in:
Isaac Freund
2022-12-31 23:19:18 +01:00
parent 174546615c
commit 2c86c2b6e5
2 changed files with 3 additions and 3 deletions

View File

@ -116,7 +116,7 @@ fn handleRequest(control: *zriver.ControlV1, request: zriver.ControlV1.Request,
else => command.errToMsg(err),
};
defer if (err == command.Error.Other) util.gpa.free(failure_message);
callback.sendFailure(failure_message);
callback.destroySendFailure(failure_message);
return;
};
@ -128,7 +128,7 @@ fn handleRequest(control: *zriver.ControlV1, request: zriver.ControlV1.Request,
else
"";
defer if (out != null) util.gpa.free(success_message);
callback.sendSuccess(success_message);
callback.destroySendSuccess(success_message);
},
}
}