loader : Fix segfault in vulkaninfo
authorMark Young <marky@lunarg.com>
Mon, 1 Aug 2016 17:34:36 +0000 (11:34 -0600)
committerMark Young <marky@lunarg.com>
Mon, 1 Aug 2016 17:34:36 +0000 (11:34 -0600)
Last commit introduced a segfault in VulkanInfo.  This corrects it.

Change-Id: Ie4115bbe24191bdad9f539e5d9b1658982417f51

loader/trampoline.c

index 5d5d486..e2c3205 100644 (file)
@@ -156,7 +156,7 @@ vkEnumerateInstanceExtensionProperties(const char *pLayerName,
                 loader_add_to_ext_list(NULL, &local_ext_list, ext_list->count,
                                        ext_list->list);
             }
-            loader_delete_layer_properties(NULL, &local_list);
+            loader_destroy_layer_list(NULL, NULL, &local_list);
             global_ext_list = &local_ext_list;
 
         } else {