Fix another leak (via valgrind), this time in cCryptoArchive

This commit is contained in:
Brian Cox 2017-08-26 16:10:12 -07:00
parent 79933005b7
commit 3481d2622a
1 changed files with 4 additions and 1 deletions

View File

@ -116,7 +116,10 @@ cCryptoArchive::~cCryptoArchive()
{
ASSERT(mAction == MA_UNSTARTED || mAction == MA_UNKNOWN || mAction == MA_FINISHED || mAction == MA_READING);
// check we did not leave a buffer unwritten
Finish();
// Finish() normally zeroes these out, but hey.
delete mpDeflator;
delete mpInflator;
}