Update ShaderManager.cpp

Fixed two memory leaks