diff --git a/agb/src/agb_alloc/block_allocator.rs b/agb/src/agb_alloc/block_allocator.rs index f876e0a5..8347b007 100644 --- a/agb/src/agb_alloc/block_allocator.rs +++ b/agb/src/agb_alloc/block_allocator.rs @@ -101,6 +101,6 @@ unsafe impl GlobalAlloc for BlockAllocator { unsafe fn dealloc(&self, ptr: *mut u8, layout: Layout) { let block = Block::from_data_ptr(ptr, layout); - (&mut *block).used = false; + (*block).used = false; } }