diff --git a/samples/iotest.cpp b/samples/iotest.cpp index 402a620a..bf50b3da 100644 --- a/samples/iotest.cpp +++ b/samples/iotest.cpp @@ -90,7 +90,7 @@ int main(int argc, char* const argv[]) output.putb(io->getb()) ; } } - if ( bytes ) delete [] bytes; + delete[] bytes; output.close(); } diff --git a/src/basicio.cpp b/src/basicio.cpp index b448480e..7447cef7 100644 --- a/src/basicio.cpp +++ b/src/basicio.cpp @@ -1682,7 +1682,7 @@ namespace Exiv2 { } RemoteIo::Impl::~Impl() { - if (blocksMap_) delete[] blocksMap_; + delete[] blocksMap_; } RemoteIo::~RemoteIo()