mach: native: deinit gpa for leak detection in debug builds
This commit is contained in:
parent
5bb740f89e
commit
0893c14893
1 changed files with 1 additions and 0 deletions
|
|
@ -585,6 +585,7 @@ comptime {
|
||||||
|
|
||||||
pub fn main() !void {
|
pub fn main() !void {
|
||||||
var gpa = std.heap.GeneralPurposeAllocator(.{}){};
|
var gpa = std.heap.GeneralPurposeAllocator(.{}){};
|
||||||
|
defer _ = gpa.deinit();
|
||||||
const allocator = gpa.allocator();
|
const allocator = gpa.allocator();
|
||||||
|
|
||||||
var engine = try Engine.init(allocator);
|
var engine = try Engine.init(allocator);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue