Reset total allocations on reset

This commit is contained in:
s1341 2021-12-26 11:17:27 +02:00
parent 11ae49b7cd
commit 2e92a34494

View File

@ -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 {