Fix scope of clEventWrapper declarations (#1099)

This change allows us to remove the extra clReleaseEvent calls which
were causing double-free issues.
1 file changed