mirror of
https://github.com/KhronosGroup/SPIRV-Tools
synced 2024-12-28 02:31:04 +00:00
parent
9c0ae6bb8e
commit
024417d836
@ -781,9 +781,10 @@ spv_result_t spvBinaryParse(const spv_const_context context, void* user_data,
|
||||
// TODO(dneto): This probably belongs in text.cpp since that's the only place
|
||||
// that a spv_binary_t value is created.
|
||||
void spvBinaryDestroy(spv_binary binary) {
|
||||
if (!binary) return;
|
||||
delete[] binary->code;
|
||||
delete binary;
|
||||
if (binary) {
|
||||
if (binary->code) delete[] binary->code;
|
||||
delete binary;
|
||||
}
|
||||
}
|
||||
|
||||
size_t spv_strnlen_s(const char* str, size_t strsz) {
|
||||
|
Loading…
Reference in New Issue
Block a user