Skip to content

Commit

Permalink
Merge pull request #6722 from hfiguiere/crop-leak-6721
Browse files Browse the repository at this point in the history
Issue #6721 - Fix memory leak in Crop
  • Loading branch information
Hombre57 authored Aug 6, 2023
2 parents 8764da1 + 6d32053 commit 00fff38
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions rtengine/dcrop.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1765,6 +1765,11 @@ void Crop::freeAll()
shbuffer = nullptr;
}

if (shbuf_real) {
delete [] shbuf_real;
shbuf_real = nullptr;
}

PipetteBuffer::flush();
}

Expand Down

0 comments on commit 00fff38

Please sign in to comment.