mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-20 22:41:07 +01:00
Fix missing memory allocator disposal
This commit is contained in:
1 parent
9777bbba36
commit
94fe1436f1
1 file changed
+2
@@ -448,8 +448,10 @@ impl<B: hal::Backend> Device<B> {
|
||||
pub(crate) fn dispose(self) {
|
||||
self.com_allocator.destroy(&self.raw);
|
||||
let desc_alloc = self.desc_allocator.into_inner();
|
||||
let mem_alloc = self.mem_allocator.into_inner();
|
||||
unsafe {
|
||||
desc_alloc.dispose(&self.raw);
|
||||
mem_alloc.dispose(&self.raw);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user