diff --git a/Common/OpenCL/ITKimprovements/itkGPUDataManager.cxx b/Common/OpenCL/ITKimprovements/itkGPUDataManager.cxx index d9fe54501..3cfb30a5b 100644 --- a/Common/OpenCL/ITKimprovements/itkGPUDataManager.cxx +++ b/Common/OpenCL/ITKimprovements/itkGPUDataManager.cxx @@ -271,7 +271,6 @@ GPUDataManager::Update() if (m_IsGPUBufferDirty && m_IsCPUBufferDirty) { itkExceptionMacro("Cannot make up-to-date buffer because both CPU and GPU buffers are dirty"); - return false; } this->UpdateGPUBuffer(); diff --git a/Common/OpenCL/ITKimprovements/itkOpenCLLogger.cxx b/Common/OpenCL/ITKimprovements/itkOpenCLLogger.cxx index ab429d34c..cb3fca392 100644 --- a/Common/OpenCL/ITKimprovements/itkOpenCLLogger.cxx +++ b/Common/OpenCL/ITKimprovements/itkOpenCLLogger.cxx @@ -104,10 +104,6 @@ OpenCLLogger::Initialize() if (this->m_FileStream->fail()) { itkExceptionMacro(<< "Unable to open file: " << logFileName); - delete this->m_FileStream; - this->m_FileStream = nullptr; - this->m_Created = false; - return; } // Create an ITK Logger