mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
fix build with no font discovery
This commit is contained in:
@ -85,7 +85,9 @@ pub fn destroy(self: *App) void {
|
||||
self.surfaces.deinit(self.alloc);
|
||||
|
||||
if (self.resources_dir) |dir| self.alloc.free(dir);
|
||||
if (self.font_discover) |*v| v.deinit();
|
||||
if (comptime font.Discover != void) {
|
||||
if (self.font_discover) |*v| v.deinit();
|
||||
}
|
||||
|
||||
self.alloc.destroy(self);
|
||||
}
|
||||
|
Reference in New Issue
Block a user