diff --git a/core/mem/allocators.odin b/core/mem/allocators.odin index b8bd9a065..118a7f7e6 100644 --- a/core/mem/allocators.odin +++ b/core/mem/allocators.odin @@ -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) {