Make Shader leak-free.