From cdea5d996edaaf59ab0acf3e758c3d9a4c22c335 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Wed, 29 Aug 2018 10:06:56 -0500 Subject: [PATCH] anv: Free the app and engine name Fixes: 8c048af5890d4 "anv: Copy the appliation info into the instance" Reviewed-by: Lionel Landwerlin --- src/intel/vulkan/anv_device.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index 07de5f7543e..47c6c6e93b4 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -682,6 +682,9 @@ void anv_DestroyInstance( anv_physical_device_finish(&instance->physicalDevice); } + vk_free(&instance->alloc, instance->app_info.app_name); + vk_free(&instance->alloc, instance->app_info.engine_name); + VG(VALGRIND_DESTROY_MEMPOOL(instance)); vk_debug_report_instance_destroy(&instance->debug_report_callbacks); -- 2.30.2