fix memory leak when reload texture
Merge pull request #8852 from zhongfq/patch-1

fix memory leak when reload texture