Fix some (not all) leaks found by valgrind.

Missing destructors et al.