Merge pull request #2077 from ilya-lavrenov:tapi_context

This commit is contained in:
Roman Donchenko 2013-12-27 20:23:56 +04:00 committed by OpenCV Buildbot
commit 2d2312d742

View File

@ -2305,8 +2305,12 @@ 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