fixed double deallocation in EditorPanel::saveImmediately
This commit is contained in:
@@ -1901,10 +1901,10 @@ bool EditorPanel::saveImmediately(const Glib::ustring &filename, const SaveForma
|
|||||||
{
|
{
|
||||||
rtengine::procparams::ProcParams pparams;
|
rtengine::procparams::ProcParams pparams;
|
||||||
ipc->getParams (&pparams);
|
ipc->getParams (&pparams);
|
||||||
std::unique_ptr<rtengine::ProcessingJob> job(rtengine::ProcessingJob::create (ipc->getInitialImage(), pparams));
|
rtengine::ProcessingJob *job = rtengine::ProcessingJob::create(ipc->getInitialImage(), pparams);
|
||||||
|
|
||||||
// save immediately
|
// save immediately
|
||||||
rtengine::IImage16 *img = rtengine::processImage(job.get(), err, nullptr, options.tunnelMetaData, false);
|
rtengine::IImage16 *img = rtengine::processImage(job, err, nullptr, options.tunnelMetaData, false);
|
||||||
|
|
||||||
int err = 0;
|
int err = 0;
|
||||||
if (sf.format == "tif") {
|
if (sf.format == "tif") {
|
||||||
|
Reference in New Issue
Block a user