Handle destruction of Server properly
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user