Fix of memory leak issues in TextureData,Mesh,and test_application