leak fixes (minor, only on quit)