fix small memory leak

main
noah metz 2024-11-03 15:27:14 -07:00
parent 9d3e15398b
commit 6b0c1f11c1
1 changed files with 3 additions and 0 deletions

@ -332,6 +332,7 @@ VkResult create_logical_device(
} }
} }
} }
free(queue_families);
if(graphics_queue->family == 0xFFFFFFFF || present_queue->family == 0xFFFFFFFF || transfer_queue->family == 0xFFFFFFFF) { if(graphics_queue->family == 0xFFFFFFFF || present_queue->family == 0xFFFFFFFF || transfer_queue->family == 0xFFFFFFFF) {
return VK_ERROR_INITIALIZATION_FAILED; return VK_ERROR_INITIALIZATION_FAILED;
@ -1348,6 +1349,8 @@ VkResult recreate_framebuffer(RenderContext* gpu) {
free(gpu->swapchain_images); free(gpu->swapchain_images);
free(gpu->swapchain_image_views); free(gpu->swapchain_image_views);
free(gpu->swapchain_framebuffers); free(gpu->swapchain_framebuffers);
free(gpu->swapchain_details.formats);
free(gpu->swapchain_details.present_modes);
VK_RESULT(get_swapchain_details( VK_RESULT(get_swapchain_details(
gpu->physical_device, gpu->physical_device,