Fix missing memory allocator disposal

This commit is contained in:
Zakor Gyula 2020-01-13 14:36:14 +01:00
parent 9777bbba36
commit 94fe1436f1

View File

@ -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);
}
}
}