mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-09 15:41:15 +00:00
(svn r18885) -Fix (r18884): Industry tile layouts weren't completely freed on error.
This commit is contained in:
parent
927f149ff2
commit
bb71c61ee1
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user