summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/newgrf.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp
index bbfbc6091..74a1f4323 100644
--- a/src/newgrf.cpp
+++ b/src/newgrf.cpp
@@ -2344,6 +2344,9 @@ static ChangeInfoResult IndustriesChangeInfo(uint indid, int numinfo, int prop,
}
}
} catch (...) {
+ for (int i = 0; i < indsp->num_table; i++) {
+ free(tile_table[i]);
+ }
free(tile_table);
free(itt);
throw;