Commit 5a2c5227 authored by Vadim Pisarevsky's avatar Vadim Pisarevsky Committed by OpenCV Buildbot

Merge pull request #798 from pengx17:master_ocl_mleak

parents e27f4da9 a2f4b301
...@@ -1053,7 +1053,7 @@ BOOL WINAPI DllMain( HINSTANCE, DWORD fdwReason, LPVOID ) ...@@ -1053,7 +1053,7 @@ BOOL WINAPI DllMain( HINSTANCE, DWORD fdwReason, LPVOID )
Context* cv_ctx = Context::getContext(); Context* cv_ctx = Context::getContext();
if(cv_ctx) if(cv_ctx)
{ {
cl_context ctx = (cl_context)&(cv_ctx->impl->oclcontext); cl_context ctx = cv_ctx->impl->oclcontext;
if(ctx) if(ctx)
openCLSafeCall(clReleaseContext(ctx)); openCLSafeCall(clReleaseContext(ctx));
} }
......
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