mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-01-18 14:41:36 +08:00
Fix openCL crash at startup after device profiling
This commit is contained in:
parent
299fce54a3
commit
5db760215f
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user