[Coverity] Fix leaking array in error case

This commit is contained in:
baldurk
2018-05-08 12:37:39 +01:00
parent 42979bfeb3
commit 8acad41a0a
@@ -1077,6 +1077,7 @@ bool WrappedVulkan::Serialise_vkCreateDevice(SerialiserType &ser, VkPhysicalDevi
{
m_FailedReplayStatus = ReplayStatus::APIHardwareUnsupported;
RDCERR("Capture requires extension '%s' which is not supported", Extensions[i].c_str());
SAFE_DELETE_ARRAY(extArray);
return false;
}