From c3d727d44410c83414e142985cab29ce39a9f0a8 Mon Sep 17 00:00:00 2001 From: Noah Metz Date: Sat, 13 Jan 2024 12:37:07 -0700 Subject: [PATCH] removed double free --- src/main.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/main.c b/src/main.c index 4eb21b3..2f5d43d 100644 --- a/src/main.c +++ b/src/main.c @@ -2939,10 +2939,6 @@ void cleanup(GLFWwindow* window, VulkanContext* context) { vkDestroyImageView(context->device, context->swapchain_image_views[i], 0); } - if(context->swapchain != VK_NULL_HANDLE) { - vkDestroySwapchainKHR(context->device, context->swapchain, 0); - } - for(uint32_t i = 0; i < context->max_frames_in_flight; i++) { vkDestroySemaphore(context->device, context->image_available_semaphores[i], 0); vkDestroySemaphore(context->device, context->render_finished_semaphores[i], 0);