forked from mirror/OpenTTD
(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 (...) {
|
} catch (...) {
|
||||||
|
for (int i = 0; i < indsp->num_table; i++) {
|
||||||
|
free(tile_table[i]);
|
||||||
|
}
|
||||||
free(tile_table);
|
free(tile_table);
|
||||||
free(itt);
|
free(itt);
|
||||||
throw;
|
throw;
|
||||||
|
Reference in New Issue
Block a user