From 088ae5c45488c717fe3b708dac4084eef8a3afb7 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 19 Oct 2023 19:43:04 -0700 Subject: [PATCH] fix build with no font discovery --- src/App.zig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/App.zig b/src/App.zig index bdf5cb77b..12a4389c7 100644 --- a/src/App.zig +++ b/src/App.zig @@ -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); }