mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-01-05 21:07:56 +00: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