fix build with no font discovery

This commit is contained in:
Mitchell Hashimoto
2023-10-19 19:43:04 -07:00
parent 1d71a87cd6
commit 088ae5c454

View File

@ -85,7 +85,9 @@ pub fn destroy(self: *App) void {
self.surfaces.deinit(self.alloc); self.surfaces.deinit(self.alloc);
if (self.resources_dir) |dir| self.alloc.free(dir); 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); self.alloc.destroy(self);
} }