yade/trunk — pull request #20 by jakob-ifgt (2012-05-10 11:10:59+00:00)
Title: fix memory leak in Law2...Capillarity and make isBroken flag compatible with fusionDetection

- fix memory leak in Law2...Capillarity
- make isBroken flag compatible with fusionDetection
- fix last commit

bodiesMenisciiList was filled with entries from Law2...Capillarity, which were never removed from the list and so leads to a memory leak. This was fixed in line 163:

if ((fusionDetection) || (hertzOn ? mindlinContactPhysics->isBroken : cundallContactPhysics->isBroken)) bodiesMenisciiList.remove((*ii));

This also fixes the segmentation fault, when fusioDetection = True and isBroken=True. So it is a double-bug-fix ;)

The other changes redo changes from the commit before.