examples: custom-entrypoint: demonstrate freeing stack space

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2024-08-25 16:40:58 -07:00
parent 2eac60caf1
commit 8b8489b3e2

View file

@ -29,6 +29,7 @@ pub fn main() !void {
// Execute systems until a frame has been finished.
try mach.mods.dispatchUntil(stack_space, .mach_core, .frame_finished);
}
allocator.free(stack_space);
} else {
// On platforms where you cannot control the mach.Core main loop, the .mach_core.start
// system your app schedules will block forever and the function call below will NEVER