From dea0ef1ee7b2f4d2aa42ffba7b442e5d8051222b Mon Sep 17 00:00:00 2001 From: Peter Hillman Date: Thu, 23 Jan 2020 12:30:11 +1300 Subject: [PATCH] fix memory leak on DeepTiledInput files: compressor for sample count table wasn't deleted Signed-off-by: Peter Hillman --- OpenEXR/IlmImf/ImfDeepTiledInputFile.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OpenEXR/IlmImf/ImfDeepTiledInputFile.cpp b/OpenEXR/IlmImf/ImfDeepTiledInputFile.cpp index 835b03cd81..ef7f88775f 100644 --- a/OpenEXR/IlmImf/ImfDeepTiledInputFile.cpp +++ b/OpenEXR/IlmImf/ImfDeepTiledInputFile.cpp @@ -288,6 +288,7 @@ DeepTiledInputFile::Data::Data (int numThreads): multiPartBackwardSupport(false), numThreads(numThreads), memoryMapped(false), + sampleCountTableComp(NULL), _streamData(NULL), _deleteStream(false) { @@ -313,6 +314,8 @@ DeepTiledInputFile::Data::~Data () for (size_t i = 0; i < slices.size(); i++) delete slices[i]; + + delete sampleCountTableComp; }