summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDenis Steckelmacher <steckdenis@yahoo.fr>2011-06-13 12:42:48 +0200
committerDenis Steckelmacher <steckdenis@yahoo.fr>2011-06-13 12:42:48 +0200
commit7f30830d30ae01e46e0670df8f732fd4a214ae03 (patch)
tree31661ade6569e743490b6bffff093618fcbf08f1 /tests
parent98ca447cdeb190e1b8a8ab544015920409e5b4fa (diff)
Don't leak Events, fix bugs.
Finally, finished events are not leaked, they are destroyed by the worker threads if needed. I've also fixed an iterator bug in pushEventsOnDevice() and cleanEvents().
Diffstat (limited to 'tests')
-rw-r--r--tests/test_commandqueue.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_commandqueue.cpp b/tests/test_commandqueue.cpp
index befdbe1..46ac8b8 100644
--- a/tests/test_commandqueue.cpp
+++ b/tests/test_commandqueue.cpp
@@ -298,6 +298,11 @@ START_TEST (test_events)
result != CL_INVALID_OPERATION,
"we cannot call clSetUserEventStatus two times for an event"
);
+
+ clReleaseEvent(write_event);
+ clReleaseEvent(user_event);
+ clReleaseCommandQueue(queue);
+ clReleaseContext(ctx);
}
END_TEST