mirror of
https://github.com/KhronosGroup/SPIRV-Tools
synced 2024-11-22 11:40:05 +00:00
parent
bd354d442a
commit
eb6ae976c6
@ -815,8 +815,6 @@ spv_result_t spvBinaryParse(const spv_const_context context, void* user_data,
|
||||
// that a spv_binary_t value is created.
|
||||
void spvBinaryDestroy(spv_binary binary) {
|
||||
if (!binary) return;
|
||||
if (binary->code) {
|
||||
delete[] binary->code;
|
||||
}
|
||||
delete[] binary->code;
|
||||
delete binary;
|
||||
}
|
||||
|
@ -54,9 +54,7 @@ spv_diagnostic spvDiagnosticCreate(const spv_position position,
|
||||
|
||||
void spvDiagnosticDestroy(spv_diagnostic diagnostic) {
|
||||
if (!diagnostic) return;
|
||||
if (diagnostic->error) {
|
||||
delete[] diagnostic->error;
|
||||
}
|
||||
delete[] diagnostic->error;
|
||||
delete diagnostic;
|
||||
}
|
||||
|
||||
|
@ -757,8 +757,6 @@ spv_result_t spvTextToBinary(const spv_const_context context,
|
||||
|
||||
void spvTextDestroy(spv_text text) {
|
||||
if (!text) return;
|
||||
if (text->str) {
|
||||
delete[] text->str;
|
||||
}
|
||||
delete[] text->str;
|
||||
delete text;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user