fixed leak in NPC::send_event