Destroy VMA on drop
This commit is contained in:
parent
520d1c4cf6
commit
873469378d
1 changed files with 8 additions and 0 deletions
|
@ -169,3 +169,11 @@ impl Allocator {
|
||||||
AllocatorBuilder::default()
|
AllocatorBuilder::default()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl Drop for Allocator {
|
||||||
|
fn drop(&mut self) {
|
||||||
|
unsafe {
|
||||||
|
vmaDestroyAllocator(self.allocator);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue