mach: native: deinit gpa for leak detection in debug builds

This commit is contained in:
dweiller 2022-06-28 12:20:57 +10:00 committed by Stephen Gutekanst
parent 5bb740f89e
commit 0893c14893

View file

@ -585,6 +585,7 @@ comptime {
pub fn main() !void {
var gpa = std.heap.GeneralPurposeAllocator(.{}){};
defer _ = gpa.deinit();
const allocator = gpa.allocator();
var engine = try Engine.init(allocator);