aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Young <marky@lunarg.com>2016-11-14 15:03:34 -0700
committerMark Young <marky@lunarg.com>2016-11-14 15:04:22 -0700
commit4f335ae5dd44be4a707c011487904c4299749ac3 (patch)
tree8c109b9290398093c03a3cd7ffa32ea1a742e940
parentae3e5fa790a3423fdac9dae0b6f4ac30ade398e9 (diff)
downloadusermoji-4f335ae5dd44be4a707c011487904c4299749ac3.tar.xz
loader: Fix pointer dereference issue.
I was setting a value after the object containing it was deleted. Change-Id: I8c41d454d3f9c89144e876c5b9feaf32af6e2500
-rw-r--r--loader/trampoline.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/loader/trampoline.c b/loader/trampoline.c
index ff09ad41..91da1e42 100644
--- a/loader/trampoline.c
+++ b/loader/trampoline.c
@@ -756,8 +756,8 @@ vkDestroyDevice(VkDevice device, const VkAllocationCallbacks *pAllocator) {
disp->DestroyDevice(device, pAllocator);
dev->chain_device = NULL;
- loader_remove_logical_device(inst, icd_term, dev, pAllocator);
dev->icd_device = NULL;
+ loader_remove_logical_device(inst, icd_term, dev, pAllocator);
loader_platform_thread_unlock_mutex(&loader_lock);
}