summaryrefslogtreecommitdiff
path: root/src/App.zig
diff options
context:
space:
mode:
authorMitchell Hashimoto <mitchell.hashimoto@gmail.com>2023-10-19 19:43:04 -0700
committerMitchell Hashimoto <mitchell.hashimoto@gmail.com>2023-10-19 19:43:04 -0700
commit088ae5c45488c717fe3b708dac4084eef8a3afb7 (patch)
treef0e6ef9ce3dd20d944232d48b7140b87dfb11b70 /src/App.zig
parent1d71a87cd6928444ce5acc1ac2a363bdf89fcb57 (diff)
fix build with no font discovery
Diffstat (limited to 'src/App.zig')
-rw-r--r--src/App.zig4
1 files changed, 3 insertions, 1 deletions
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);
}