t_name should be deleted after that as setname() increases the number of references.