Skip to content

Commit

Permalink
fix memory leak on DeepTiledInput files: compressor for sample count …
Browse files Browse the repository at this point in the history
…table wasn't deleted

Signed-off-by: Peter Hillman <[email protected]>
  • Loading branch information
peterhillman committed Feb 4, 2020
1 parent 2ae5f83 commit dea0ef1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions OpenEXR/IlmImf/ImfDeepTiledInputFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ DeepTiledInputFile::Data::Data (int numThreads):
multiPartBackwardSupport(false),
numThreads(numThreads),
memoryMapped(false),
sampleCountTableComp(NULL),
_streamData(NULL),
_deleteStream(false)
{
Expand All @@ -313,6 +314,8 @@ DeepTiledInputFile::Data::~Data ()

for (size_t i = 0; i < slices.size(); i++)
delete slices[i];

delete sampleCountTableComp;
}


Expand Down

0 comments on commit dea0ef1

Please sign in to comment.