Skip to content

Commit

Permalink
Merge pull request #179 from CAHEK7/NullptrBug
Browse files Browse the repository at this point in the history
fix potential memory leak
  • Loading branch information
ehanway-ilm authored Jul 26, 2016
2 parents b206a24 + d2f10c7 commit a0a6839
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OpenEXR/IlmImf/ImfDwaCompressor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1932,7 +1932,7 @@ DwaCompressor::compress
if (outBufferSize > _outBufferSize)
{
_outBufferSize = outBufferSize;
if (_outBuffer == 0)
if (_outBuffer != 0)
delete[] _outBuffer;
_outBuffer = new char[outBufferSize];
}
Expand Down

0 comments on commit a0a6839

Please sign in to comment.