Fixes a wrong delete statement and a memory leak, Issue 2202
This commit is contained in:
@@ -823,7 +823,7 @@ void DCPProfile::Apply(Imagefloat *pImg, int preferredIlluminant, Glib::ustring
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (deleteTableHandle) delete deleteTableHandle;
|
if (deleteTableHandle) delete[] deleteTableHandle;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Integer variant is legacy, only used for thumbs. Simply take the matrix here
|
// Integer variant is legacy, only used for thumbs. Simply take the matrix here
|
||||||
|
@@ -121,6 +121,10 @@ void BatchQueueEntryUpdater::processThread () {
|
|||||||
thumbInterp (current.oimg, current.ow, current.oh, img, neww, current.newh);
|
thumbInterp (current.oimg, current.ow, current.oh, img, neww, current.newh);
|
||||||
current.listener->updateImage (img, neww, current.newh, current.ow, current.oh, newBuffer?current.oimg:NULL);
|
current.listener->updateImage (img, neww, current.newh, current.ow, current.oh, newBuffer?current.oimg:NULL);
|
||||||
}
|
}
|
||||||
|
if(current.oimg) {
|
||||||
|
delete[] current.oimg;
|
||||||
|
current.oimg = NULL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stopped = true;
|
stopped = true;
|
||||||
|
Reference in New Issue
Block a user