diff options
Diffstat (limited to 'train_gui.c')
-rw-r--r-- | train_gui.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/train_gui.c b/train_gui.c index adcb5a790..3e1de7bae 100644 --- a/train_gui.c +++ b/train_gui.c @@ -1351,6 +1351,10 @@ static void PlayerTrainsWndProc(Window *w, WindowEvent *e) 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 trains list player %d station %d", |