fix missing addref() in ocl::Context::create(str)

backported fix from PR 18907
This commit is contained in:
Dale Phurrough
2020-11-24 02:08:41 +01:00
committed by Alexander Alekhin
parent ea91f7e57d
commit 705e7b207c

View File

@@ -2437,6 +2437,7 @@ public:
if (impl)
{
CV_LOG_INFO(NULL, "OpenCL: reuse context@" << impl->contextId << " for configuration: " << configuration)
impl->addref();
return impl;
}