From 757c1da2923f7696b79768b963b40d91394faf46 Mon Sep 17 00:00:00 2001 From: heckflosse Date: Sat, 10 Nov 2018 21:46:55 +0100 Subject: [PATCH] Fix a memory leak, #4966 --- rtengine/improccoordinator.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rtengine/improccoordinator.cc b/rtengine/improccoordinator.cc index f68629564..ac330db23 100644 --- a/rtengine/improccoordinator.cc +++ b/rtengine/improccoordinator.cc @@ -953,6 +953,11 @@ void ImProcCoordinator::updatePreviewImage(int todo, bool panningRelatedChange) hListener->histogramChanged(histRed, histGreen, histBlue, histLuma, histToneCurve, histLCurve, histCCurve, /*histCLurve, histLLCurve,*/ histLCAM, histCCAM, histRedRaw, histGreenRaw, histBlueRaw, histChroma, histLRETI); } } + if (orig_prev != oprevi) { + delete oprevi; + oprevi = nullptr; + } + }