aircraft_gui.c
changeset 767 13c481dee3fc
parent 757 a3510cb57cfc
child 842 ebfd36603ab9
--- a/aircraft_gui.c	Wed Dec 22 19:16:10 2004 +0000
+++ b/aircraft_gui.c	Wed Dec 22 19:16:56 2004 +0000
@@ -1067,6 +1067,10 @@
 		vl->resort_timer = DAY_TICKS * PERIODIC_RESORT_DAYS;
 		break;
 
+	case WE_DESTROY:
+		free(vl->sort_list);
+		break;
+
 	case WE_TICK: /* resort the list every 20 seconds orso (10 days) */
 		if (--vl->resort_timer == 0) {
 			DEBUG(misc, 1) ("Periodic resort aircraft list player %d station %d",