1.fix memory leak 2.texture cache