mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-29 01:19:11 +00:00
(svn r1232) Plug memory leak
This commit is contained in:
@@ -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",
|
||||
|
Reference in New Issue
Block a user