* fix some mem leaks (50Kb after clicking around a bit, according to valgrind)