Opencl / OpenGL problem with cl context

As soon as I create a window with glutCreateWindow(), I can’t create an opencl context with clCreateContext.
Error code is OUT_OF_RESOURCES.

I have the problem even with a properties without gl_sharing :

cl_context_properties properties =
CL_CONTEXT_PLATFORM, reinterpret_cast<cl_context_properties>(cl::platform),

If I don’t create the window, it works fine.

ps : I use kubuntu 10.04 64 bits, geforce 9800gt, and 256.35 drivers.

It was my fault I run multiple times my c++ program and it leaked opengl and opencl objects.
So I had to restart my computer to clean my card.

Is there tools that can clean leaked resources on GPU?