Destroy VMA on drop

This commit is contained in:
hodasemi 2023-05-11 19:50:22 +02:00
parent 520d1c4cf6
commit 873469378d

View file

@ -169,3 +169,11 @@ impl Allocator {
AllocatorBuilder::default()
}
}
impl Drop for Allocator {
fn drop(&mut self) {
unsafe {
vmaDestroyAllocator(self.allocator);
}
}
}