[mem] Fix Dynamic_Pool.

This commit is contained in:
Jeroen van Rijn
2022-05-05 10:45:15 +02:00
parent 1d29d9be25
commit fe442d7c0c

View File

@@ -746,6 +746,8 @@ dynamic_pool_reset :: proc(using pool: ^Dynamic_Pool) {
free(a, block_allocator)
}
clear(&out_band_allocations)
bytes_left = 0 // Make new allocations call `cycle_new_block` again.
}
dynamic_pool_free_all :: proc(using pool: ^Dynamic_Pool) {