loader: gh971 Fix double free on physical devices

Change-Id: I97428dd579217340586809577eb64277ed4bb2cd
This commit is contained in:
Maciej Jesionowski 2016-09-30 15:14:52 +02:00 committed by Mark Young
parent 26703e0452
commit 5df6d909ca

View File

@ -4457,6 +4457,7 @@ terminator_EnumeratePhysicalDevices(VkInstance instance,
if (inst->phys_devs_term) {
loader_instance_heap_free(inst, inst->phys_devs_term);
inst->phys_devs_term = NULL;
}
if (copy_count > 0) {