From 5db760215fa05f8dd722f66bc6a3ac438a5cd8d4 Mon Sep 17 00:00:00 2001 From: "Wootton, Michael" Date: Thu, 27 Oct 2016 22:16:22 +0200 Subject: [PATCH] Fix openCL crash at startup after device profiling --- opencl/openclwrapper.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/opencl/openclwrapper.cpp b/opencl/openclwrapper.cpp index 7f81ae346..73bc6bdb9 100644 --- a/opencl/openclwrapper.cpp +++ b/opencl/openclwrapper.cpp @@ -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)