{mach,examples}: Fix memory leaks (#384)
This commit is contained in:
parent
39e07df150
commit
858c14bbae
2 changed files with 5 additions and 1 deletions
|
|
@ -205,6 +205,9 @@ pub const Platform = struct {
|
|||
cur.destroy();
|
||||
}
|
||||
}
|
||||
while (platform.events.popFirst()) |ev| {
|
||||
platform.allocator.destroy(ev);
|
||||
}
|
||||
}
|
||||
|
||||
fn pushEvent(platform: *Platform, event: structs.Event) void {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue