From 180dd0bb39ee129cec2f0c0899c6b6814335eb56 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Mon, 4 Mar 2024 10:27:28 -0800 Subject: [PATCH] testffmpeg: don't free the instance extensions, we hold onto them in the context --- test/testffmpeg_vulkan.c | 1 - 1 file changed, 1 deletion(-) diff --git a/test/testffmpeg_vulkan.c b/test/testffmpeg_vulkan.c index 467100b29..6f1ebca92 100644 --- a/test/testffmpeg_vulkan.c +++ b/test/testffmpeg_vulkan.c @@ -242,7 +242,6 @@ static int createInstance(VulkanVideoContext *context) context->instanceExtensionsCount = instanceCreateInfo.enabledExtensionCount; result = context->vkCreateInstance(&instanceCreateInfo, NULL, &context->instance); - SDL_free((void *)instanceExtensionsCopy); if (result != VK_SUCCESS) { context->instance = VK_NULL_HANDLE; return SDL_SetError("vkCreateInstance(): %s\n", getVulkanResultString(result));