clang-tidy: don't check for NULL with delete

Found with readability-delete-null-pointer

Signed-off-by: Rosen Penev <rosenp@gmail.com>
main
Rosen Penev 4 years ago committed by Luis Díaz Más
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…
Cancel
Save