projects
/
platform
/
upstream
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0105f8f
)
fix missing addref() in ocl::Context::create(str)
author
Dale Phurrough
<dale@hidale.com>
Wed, 25 Nov 2020 00:53:41 +0000
(
01:53
+0100)
committer
Dale Phurrough
<dale@hidale.com>
Wed, 25 Nov 2020 00:53:41 +0000
(
01:53
+0100)
- fix https://github.com/opencv/opencv/issues/18906
- unable to add related test cases as there is
no public access to Context:Impl refcounts
modules/core/src/ocl.cpp
patch
|
blob
|
history
diff --git
a/modules/core/src/ocl.cpp
b/modules/core/src/ocl.cpp
index
a9bd974
..
44ee8f9
100644
(file)
--- a/
modules/core/src/ocl.cpp
+++ b/
modules/core/src/ocl.cpp
@@
-2437,6
+2437,7
@@
public:
if (impl)
{
CV_LOG_INFO(NULL, "OpenCL: reuse context@" << impl->contextId << " for configuration: " << configuration)
+ impl->addref();
return impl;
}