Skip to content

Commit 705e7b2

Browse files
diablodalealalek
authored andcommitted
fix missing addref() in ocl::Context::create(str)
backported fix from PR 18907
1 parent ea91f7e commit 705e7b2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

modules/core/src/ocl.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2437,6 +2437,7 @@ struct Context::Impl
24372437
if (impl)
24382438
{
24392439
CV_LOG_INFO(NULL, "OpenCL: reuse context@" << impl->contextId << " for configuration: " << configuration)
2440+
impl->addref();
24402441
return impl;
24412442
}
24422443

0 commit comments

Comments
 (0)