Fix some event ref count error.
authorYang Rong <rong.r.yang@intel.com>
Wed, 2 Jul 2014 05:42:52 +0000 (13:42 +0800)
committerZhigang Gong <zhigang.gong@intel.com>
Wed, 2 Jul 2014 05:46:51 +0000 (13:46 +0800)
commit0813acb1b5db09e442685d9a8f947c94fe7c73cb
tree34cae2d666ab85bfbf84b63e7bc2b0129245e722
parent43138b8dccdbafa9ee095ca5dcbf9fa5e85dfdb2
Fix some event ref count error.

Move the event add ref to function cl_event_new_enqueue_callback for clear.
Also need add the wait user events' ref count.

Signed-off-by: Yang Rong <rong.r.yang@intel.com>
Reviewed-by: "Luo, Xionghu" <xionghu.luo@intel.com>
src/cl_event.c