diff -r acb078280f60 -r b3b8bb6c0a48 src/fsmport.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/fsmport.cpp Tue Aug 21 09:02:06 2007 +0000 @@ -0,0 +1,20 @@ +/* $Id$ */ + +/** @file airport.cpp */ + +#include "stdafx.h" +#include "openttd.h" +#include "fsmport.h" + +FSMPortClass::~FSMPortClass() +{ + for (uint i = 0; i < nof_elements; i++) { + FSMState *current = layout[i].next; + while (current != NULL) { + FSMState *next = current->next; + free(current); + current = next; + }; + } + free(layout); +}