diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/opencl/qcluserevent.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/opencl/qcluserevent.cpp b/src/opencl/qcluserevent.cpp index 2afb515..7689447 100644 --- a/src/opencl/qcluserevent.cpp +++ b/src/opencl/qcluserevent.cpp @@ -153,7 +153,7 @@ void QCLUserEvent::setStatus(cl_int status) */ void QCLUserEvent::validateEvent() { - if (commandType() != CL_COMMAND_USER) { + if (m_id && commandType() != CL_COMMAND_USER) { clReleaseEvent(m_id); m_id = 0; } |