forked from mirror/vulkan-zig
Merge pull request #39 from maxxnino/master
example: fix memory leak in swapchain.deinit
This commit is contained in:
@@ -107,6 +107,7 @@ pub const Swapchain = struct {
|
|||||||
|
|
||||||
pub fn deinit(self: Swapchain) void {
|
pub fn deinit(self: Swapchain) void {
|
||||||
self.deinitExceptSwapchain();
|
self.deinitExceptSwapchain();
|
||||||
|
self.allocator.free(self.swap_images);
|
||||||
self.gc.vkd.destroySwapchainKHR(self.gc.dev, self.handle, null);
|
self.gc.vkd.destroySwapchainKHR(self.gc.dev, self.handle, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user