commit | eb6ae976c6742849c80bea1726890fed53573f5e | [log] [tgz] |
---|---|---|
author | Eric Engestrom <eric@engestrom.ch> | Thu Feb 18 23:41:16 2016 +0000 |
committer | Eric Engestrom <eric@engestrom.ch> | Thu Feb 18 23:43:25 2016 +0000 |
tree | 4a623fcfdf445ac4e3b345765a2df3f9a6948ae1 | |
parent | bd354d442a8b54e3ef007f0bbf1dad5623968e3b [diff] [blame] |
Remove unnecessary null pointer checks Fixes #110
diff --git a/source/binary.cpp b/source/binary.cpp index 4db3226..2c42c92 100644 --- a/source/binary.cpp +++ b/source/binary.cpp
@@ -815,8 +815,6 @@ // 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; }