skip |= ValidateObjectNotInUse(dev_data, event_node, obj_struct);
// Any bound cmd buffers are now invalid
invalidateCommandBuffers(event_node->cb_bindings, obj_struct);
- dev_data->eventMap.erase(event);
}
- lock.unlock();
- if (!skip)
+ if (!skip) {
+ dev_data->eventMap.erase(event);
+ lock.unlock();
dev_data->device_dispatch_table->DestroyEvent(device, event, pAllocator);
+ }
}
VKAPI_ATTR void VKAPI_CALL
skip |= ValidateObjectNotInUse(dev_data, qp_node, obj_struct);
// Any bound cmd buffers are now invalid
invalidateCommandBuffers(qp_node->cb_bindings, obj_struct);
- dev_data->queryPoolMap.erase(queryPool);
}
- lock.unlock();
- if (!skip)
+ if (!skip) {
+ dev_data->queryPoolMap.erase(queryPool);
+ lock.unlock();
dev_data->device_dispatch_table->DestroyQueryPool(device, queryPool, pAllocator);
+ }
}
VKAPI_ATTR VkResult VKAPI_CALL GetQueryPoolResults(VkDevice device, VkQueryPool queryPool, uint32_t firstQuery,
skip |= ValidateObjectNotInUse(dev_data, pipe_node, obj_struct);
// Any bound cmd buffers are now invalid
invalidateCommandBuffers(pipe_node->cb_bindings, obj_struct);
- dev_data->pipelineMap.erase(pipeline);
}
- lock.unlock();
- if (!skip)
+ if (!skip) {
+ dev_data->pipelineMap.erase(pipeline);
+ lock.unlock();
dev_data->device_dispatch_table->DestroyPipeline(device, pipeline, pAllocator);
+ }
}
VKAPI_ATTR void VKAPI_CALL
skip |= ValidateObjectNotInUse(dev_data, sampler_node, obj_struct);
// Any bound cmd buffers are now invalid
invalidateCommandBuffers(sampler_node->cb_bindings, obj_struct);
- dev_data->samplerMap.erase(sampler);
}
- lock.unlock();
- if (!skip)
+ if (!skip) {
+ dev_data->samplerMap.erase(sampler);
+ lock.unlock();
dev_data->device_dispatch_table->DestroySampler(device, sampler, pAllocator);
+ }
}
VKAPI_ATTR void VKAPI_CALL