Fix openCL crash at startup after device profiling

This commit is contained in:
Wootton, Michael 2016-10-27 22:16:22 +02:00 committed by Zdenko Podobný
parent 299fce54a3
commit 5db760215f

View File

@ -228,6 +228,7 @@ void OpenclDevice::releaseMorphCLBuffers()
clReleaseMemObject(pixdCLBuffer);
if (pixThBuffer != NULL)
clReleaseMemObject(pixThBuffer);
pixdCLIntermediate = pixsCLBuffer = pixdCLBuffer = pixThBuffer = NULL;
}
int OpenclDevice::initMorphCLAllocations(l_int32 wpl, l_int32 h, PIX* pixs)