summaryrefslogtreecommitdiff
path: root/ship_gui.c
diff options
context:
space:
mode:
Diffstat (limited to 'ship_gui.c')
-rw-r--r--ship_gui.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ship_gui.c b/ship_gui.c
index a8207787c..98e53f559 100644
--- a/ship_gui.c
+++ b/ship_gui.c
@@ -1047,6 +1047,10 @@ static void PlayerShipsWndProc(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 ships list player %d station %d",