(svn r18885) -Fix (r18884): Industry tile layouts weren't completely freed on error.

This commit is contained in:
peter1138 2010-01-22 14:03:36 +00:00
parent 927f149ff2
commit bb71c61ee1
1 changed files with 3 additions and 0 deletions

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;