mirror of
https://github.com/opencv/opencv.git
synced 2025-06-07 17:44:04 +08:00
fix missing addref() in ocl::Context::create(str)
- fix https://github.com/opencv/opencv/issues/18906 - unable to add related test cases as there is no public access to Context:Impl refcounts
This commit is contained in:
parent
0105f8fa38
commit
c08e38acd0
@ -2437,6 +2437,7 @@ public:
|
|||||||
if (impl)
|
if (impl)
|
||||||
{
|
{
|
||||||
CV_LOG_INFO(NULL, "OpenCL: reuse context@" << impl->contextId << " for configuration: " << configuration)
|
CV_LOG_INFO(NULL, "OpenCL: reuse context@" << impl->contextId << " for configuration: " << configuration)
|
||||||
|
impl->addref();
|
||||||
return impl;
|
return impl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user