提交 14585576 编写于 作者: K Konstantin Matskevich

bugfix in deallocate

上级 3ab47300
......@@ -2705,6 +2705,7 @@ public:
}
u->markHostCopyObsolete(false);
clReleaseMemObject((cl_mem)u->handle);
u->handle = 0;
u->currAllocator = u->prevAllocator;
if(u->data && u->copyOnMap())
fastFree(u->data);
......@@ -2717,6 +2718,7 @@ public:
if(u->data && u->copyOnMap())
fastFree(u->data);
clReleaseMemObject((cl_mem)u->handle);
u->handle = 0;
delete u;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册