Changeset - r24097:444d80d0053f
[Not reviewed]
master
0 1 0
Charles Pigott - 4 years ago 2020-02-09 11:44:45
charlespigott@googlemail.com
Fix #7988: Memory leak when using custom depot names
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/depot.cpp
Show inline comments
 
@@ -27,6 +27,8 @@ INSTANTIATE_POOL_METHODS(Depot)
 
 */
 
Depot::~Depot()
 
{
 
	free(this->name);
 

	
 
	if (CleaningPool()) return;
 

	
 
	if (!IsDepotTile(this->xy) || GetDepotIndex(this->xy) != this->index) {
0 comments (0 inline, 0 general)