apprt/glfw: quit cleans up resources properly

This commit is contained in:
Mitchell Hashimoto
2023-03-27 10:47:54 -07:00
parent 69aaab50eb
commit f5269df68f

View File

@ -93,7 +93,13 @@ pub const App = struct {
// Tick the terminal app
const should_quit = try self.app.tick(self);
if (should_quit) return;
if (should_quit) {
for (self.app.surfaces.items) |surface| {
surface.close(false);
}
return;
}
}
}