clang-tidy: don't check for NULL with delete
Found with readability-delete-null-pointer Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
1dc1186760
commit
b3040da54c
@ -90,7 +90,7 @@ int main(int argc, char* const argv[])
|
||||
output.putb(io->getb()) ;
|
||||
}
|
||||
}
|
||||
if ( bytes ) delete [] bytes;
|
||||
delete[] bytes;
|
||||
output.close();
|
||||
}
|
||||
|
||||
|
||||
@ -1682,7 +1682,7 @@ namespace Exiv2 {
|
||||
}
|
||||
|
||||
RemoteIo::Impl::~Impl() {
|
||||
if (blocksMap_) delete[] blocksMap_;
|
||||
delete[] blocksMap_;
|
||||
}
|
||||
|
||||
RemoteIo::~RemoteIo()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user