Cleanup in hedit.c