fix memory leak during image conversion in simpleprocess.cc
This commit is contained in:
@@ -197,6 +197,9 @@ IImage16* processImage (ProcessingJob* pjob, int& errorCode, ProgressListener* p
|
|||||||
}
|
}
|
||||||
readyImg = ipf.lab2rgb16 (labView, cx, cy, cw, ch, params.icm.output);
|
readyImg = ipf.lab2rgb16 (labView, cx, cy, cw, ch, params.icm.output);
|
||||||
|
|
||||||
|
// we can now safely delete labView
|
||||||
|
delete labView;
|
||||||
|
|
||||||
if (pl)
|
if (pl)
|
||||||
pl->setProgress (1.0);
|
pl->setProgress (1.0);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user