Release GL objects when CL kernel finishes.