src/fsmport.cpp
branchNewGRF_ports
changeset 6853 b3b8bb6c0a48
child 6856 0e8e4ebf23ff
--- /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);
+}