summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2011-08-19 20:44:22 +0000
committeralberth <alberth@openttd.org>2011-08-19 20:44:22 +0000
commitf1b792cd0121181484218467c76d5a9869621d8c (patch)
tree8799e0cd63fe77169d5964256da21f4f785e3165
parent5a81e7c8d8bfb2c435c40794bde82cac90a25c00 (diff)
downloadopenttd-f1b792cd0121181484218467c76d5a9869621d8c.tar.xz
(svn r22760) -Fix (r19459): Also free allocated depot tables.
-rw-r--r--src/newgrf.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp
index 59dc65aad..ef2243c7e 100644
--- a/src/newgrf.cpp
+++ b/src/newgrf.cpp
@@ -7256,6 +7256,7 @@ static void ResetCustomAirports()
free((void*)as->table[j]);
}
free((void*)as->table);
+ free((void*)as->depot_table);
free(as);
}