mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-27 08:29:11 +00:00
(svn r18885) -Fix (r18884): Industry tile layouts weren't completely freed on error.
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user