Skip to content

Commit

Permalink
Fix openCL crash at startup after device profiling
Browse files Browse the repository at this point in the history
  • Loading branch information
mwootton authored and zdenop committed Oct 27, 2016
1 parent 299fce5 commit 5db7602
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions opencl/openclwrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5db7602

Please sign in to comment.