Handle destruction of Server properly

This commit is contained in:
Isaac Freund
2020-03-24 21:18:17 +01:00
parent aaecef8c5c
commit a3eb33a7b1
2 changed files with 2 additions and 2 deletions

View File

@ -91,7 +91,7 @@ pub const Server = struct {
}
/// Free allocated memory and clean up
pub fn deinit(self: Self) void {
pub fn destroy(self: Self) void {
c.wl_display_destroy_clients(self.wl_display);
c.wl_display_destroy(self.wl_display);
c.wlr_output_layout_destroy(self.wlr_output_layout);