Fixes for some mem-leaks: most changes where pretty basic (i.e. adding deletes).

No match.