Remove unnecessary null pointer checks

Fixes #225.
This commit is contained in:
Eelco Dolstra 2014-03-12 14:42:25 +01:00
parent 006f24c7fa
commit fb8d8f5428

View file

@ -13,7 +13,7 @@ BufferedSink::~BufferedSink()
/* We can't call flush() here, because C++ for some insane reason
doesn't allow you to call virtual methods from a destructor. */
assert(!bufPos);
if (buffer) delete[] buffer;
delete[] buffer;
}
@ -71,7 +71,7 @@ void Source::operator () (unsigned char * data, size_t len)
BufferedSource::~BufferedSource()
{
if (buffer) delete[] buffer;
delete[] buffer;
}