From ea3cb48fd35f9d1b787e8e018a0562d7048b801c Mon Sep 17 00:00:00 2001 From: Tim Culverhouse Date: Sun, 11 Aug 2024 20:27:29 -0500 Subject: [PATCH] fix: proper operator for debug mode Signed-off-by: Tim Culverhouse --- src/app.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app.zig b/src/app.zig index a8d24aa..751693f 100644 --- a/src/app.zig +++ b/src/app.zig @@ -138,7 +138,7 @@ pub const App = struct { for (self.clients.items, 0..) |_, i| { var client = self.clients.items[i]; client.deinit(); - if (builtin.mode != .Debug) { + if (builtin.mode == .Debug) { // We only clean up clients in Debug mode so we can check for memory leaks // without failing for this. We don't care about it in any other mode since we // are exiting anyways and we want to do it fast. If we destroy, our readthread -- 2.51.2