Commit 2d2312d7 authored by Roman Donchenko's avatar Roman Donchenko Committed by OpenCV Buildbot

Merge pull request #2077 from ilya-lavrenov:tapi_context

parents 80816f68 f221f57c
......@@ -2306,7 +2306,11 @@ bool Context2::create(int dtype0)
Context2::~Context2()
{
if (p)
{
p->release();
p = NULL;
}
}
Context2::Context2(const Context2& c)
......@@ -2329,7 +2333,7 @@ Context2& Context2::operator = (const Context2& c)
void* Context2::ptr() const
{
return p->handle;
return p == NULL ? NULL : p->handle;
}
size_t Context2::ndevices() const
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment