diff options
author | Rhys Weatherley <rhys.weatherley@nokia.com> | 2010-06-20 16:51:48 +1000 |
---|---|---|
committer | Rhys Weatherley <rhys.weatherley@nokia.com> | 2010-06-20 16:51:48 +1000 |
commit | cf739839e3f9ddf880476143e1e823c2a6ed592c (patch) | |
tree | ea9c7a7c03ceec8ca75c0a743b1631001994b4ca /src | |
parent | 375caabaccfae6106f8e7d2da6a2ce5615467076 (diff) |
Don't call clRetainEvent on a null event id.
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; } |