1
0
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:
2010-01-22 14:03:36 +00:00
parent 927f149ff2
commit bb71c61ee1

View File

@@ -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;