Fixes a wrong delete statement and a memory leak, Issue 2202

This commit is contained in:
Ingo
2014-01-15 23:13:58 +01:00
parent 6064f1afc1
commit bbf173b625
2 changed files with 5 additions and 1 deletions

View File

@@ -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

View File

@@ -121,6 +121,10 @@ void BatchQueueEntryUpdater::processThread () {
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);
}
if(current.oimg) {
delete[] current.oimg;
current.oimg = NULL;
}
}
stopped = true;