Reset total allocations on reset
This commit is contained in:
parent
11ae49b7cd
commit
2e92a34494
@ -352,6 +352,8 @@ impl Allocator {
|
||||
for allocation in tmp_allocations {
|
||||
self.allocations.insert(allocation.address, allocation);
|
||||
}
|
||||
|
||||
self.total_allocation_size = 0;
|
||||
}
|
||||
|
||||
pub fn get_usable_size(&self, ptr: *mut c_void) -> usize {
|
||||
|
Loading…
x
Reference in New Issue
Block a user