Update of /cvsroot/pure-data/externals/nusmuk In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10578
Modified Files: msd.h Log Message: add thomas fix for link destruction bug.
Index: msd.h =================================================================== RCS file: /cvsroot/pure-data/externals/nusmuk/msd.h,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** msd.h 16 May 2007 09:49:51 -0000 1.16 --- msd.h 22 Jun 2007 16:14:17 -0000 1.17 *************** *** 597,608 **** } ! t_mass *m = mass.find(GetAInt(argv[0])); ! if(m) { ! // Delete all associated links ! for(typename std::vector<t_link *>::iterator it = m->links.begin(); it < m->links.end(); ++it) ! deletelink(*it); ! outmass(S_Mass_deleted,m); ! massids.erase(m); ! mass.remove(m->nbr); delete m; mass_deleted = 1; --- 597,612 ---- } ! ! t_mass *m = mass.find(GetAInt(argv[0])); ! if(m) { ! // Delete all associated links ! ! while(!m->links.empty()) ! deletelink(m->links.front()); ! ! outmass(S_Mass_deleted,m); ! massids.erase(m); ! mass.remove(m->nbr); ! delete m; mass_deleted = 1;