Relase resources of a mesh