properly deinit allocator (revealing new bug)
This commit is contained in:
parent
03bf6548dc
commit
83f4595c74
|
@ -24,7 +24,8 @@ SimpleAllocator := struct {
|
|||
} else if target == target_hbvm_ableos {
|
||||
target.free(alloced.ptr, alloced.len)
|
||||
}
|
||||
};
|
||||
}
|
||||
self.allocations.deinit();
|
||||
*self = Self.new()
|
||||
}
|
||||
alloc := fn(self: ^Self, $T: type, count: uint): ?^T {
|
||||
|
|
Loading…
Reference in a new issue