fixed double deallocation in EditorPanel::saveImmediately

This commit is contained in:
Alberto Griggio
2017-08-08 22:58:51 +02:00
parent 8c3c2f3e88
commit 7ab16c1b93

View File

@@ -1901,10 +1901,10 @@ bool EditorPanel::saveImmediately(const Glib::ustring &filename, const SaveForma
{
rtengine::procparams::ProcParams 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
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;
if (sf.format == "tif") {