mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
core: App asserts the font grid set is empty on close
This commit is contained in:
@ -75,7 +75,10 @@ pub fn destroy(self: *App) void {
|
|||||||
self.surfaces.deinit(self.alloc);
|
self.surfaces.deinit(self.alloc);
|
||||||
|
|
||||||
// Clean up our font group cache
|
// Clean up our font group cache
|
||||||
// TODO(fontmem): assert all ref counts are zero
|
// We should have zero items in the grid set at this point because
|
||||||
|
// destroy only gets called when the app is shutting down and this
|
||||||
|
// should gracefully close all surfaces.
|
||||||
|
assert(self.font_grid_set.count() == 0);
|
||||||
self.font_grid_set.deinit();
|
self.font_grid_set.deinit();
|
||||||
|
|
||||||
self.alloc.destroy(self);
|
self.alloc.destroy(self);
|
||||||
|
Reference in New Issue
Block a user