From 6d320534989cf36f7837fb2183da14bea9997a61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hubert=20Figui=C3=A8re?= Date: Mon, 20 Mar 2023 17:22:53 -0400 Subject: [PATCH] Issue #6721 - Fix memory leak in Crop - Crop::freeAll() didn't free the memory --- rtengine/dcrop.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rtengine/dcrop.cc b/rtengine/dcrop.cc index 8ddaa5f75..fb553c354 100644 --- a/rtengine/dcrop.cc +++ b/rtengine/dcrop.cc @@ -1735,6 +1735,11 @@ void Crop::freeAll() shbuffer = nullptr; } + if (shbuf_real) { + delete [] shbuf_real; + shbuf_real = nullptr; + } + PipetteBuffer::flush(); }