mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
[mem] Fix Dynamic_Pool.
This commit is contained in:
@@ -746,6 +746,8 @@ dynamic_pool_reset :: proc(using pool: ^Dynamic_Pool) {
|
|||||||
free(a, block_allocator)
|
free(a, block_allocator)
|
||||||
}
|
}
|
||||||
clear(&out_band_allocations)
|
clear(&out_band_allocations)
|
||||||
|
|
||||||
|
bytes_left = 0 // Make new allocations call `cycle_new_block` again.
|
||||||
}
|
}
|
||||||
|
|
||||||
dynamic_pool_free_all :: proc(using pool: ^Dynamic_Pool) {
|
dynamic_pool_free_all :: proc(using pool: ^Dynamic_Pool) {
|
||||||
|
|||||||
Reference in New Issue
Block a user