fix double free
This commit is contained in:
parent
cdf98df0e3
commit
e3e2fa63e0
|
@ -186,9 +186,6 @@ impl Drop for RawVulkanBuffer {
|
|||
fn drop(&mut self) {
|
||||
unsafe {
|
||||
ManuallyDrop::drop(&mut self.buffer);
|
||||
if self.buffer.handle != vk::Buffer::null() {
|
||||
self.buffer.device.destroy_buffer(self.buffer.handle, None);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue