anv: Free the app and engine name
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 29 Aug 2018 15:06:56 +0000 (10:06 -0500)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 29 Aug 2018 16:24:57 +0000 (11:24 -0500)
Fixes: 8c048af5890d4 "anv: Copy the appliation info into the instance"
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/vulkan/anv_device.c

index 07de5f7543e2c5ca79cb7772dd8b66b005ef7d9f..47c6c6e93b4574f2b578e89eba25cab92f953a78 100644 (file)
@@ -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);