Skip to content

Commit

Permalink
test for multipart threading was leaking memory
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Hillman <peterh@wetafx.co.nz>
  • Loading branch information
peterhillman committed Feb 4, 2020
1 parent b673e6a commit a8508ab
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions OpenEXR/IlmImfTest/testMultiPartThreading.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,18 @@ generateRandomFile (int partCount, const std::string & fn)
}
}

for (int i = 0; i < partCount; i++)
{
if (partTypes[i] == 0)
{
delete (OutputPart*) parts[i];
}
else
{
delete (TiledOutputPart*) parts[i];
}
}

delete threadPool;

delete[] tiledHalfData;
Expand Down

0 comments on commit a8508ab

Please sign in to comment.