1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Merge pull request #36733 from qarmin/static_analyzer_fixes

Fixes bugs found by Sonarcloud and Coverity
This commit is contained in:
Rémi Verschelde
2020-03-04 13:41:38 +01:00
committed by GitHub
10 changed files with 25 additions and 13 deletions

View File

@@ -4182,7 +4182,10 @@ RenderingDeviceVulkan::DescriptorPool *RenderingDeviceVulkan::_descriptor_pool_a
descriptor_pool_create_info.poolSizeCount = sizes.size();
descriptor_pool_create_info.pPoolSizes = sizes.ptr();
VkResult res = vkCreateDescriptorPool(device, &descriptor_pool_create_info, NULL, &pool->pool);
ERR_FAIL_COND_V(res, NULL);
if (res) {
memdelete(pool);
ERR_FAIL_COND_V(res, NULL);
}
descriptor_pools[p_key].insert(pool);
}