Remove some leaks from TextureManager