mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-04 21:33:51 +00:00
(svn r17341) -Fix: memory leak when trying to bankrupt the local company
This commit is contained in:
parent
317f34b3d2
commit
50e794849a
@ -536,6 +536,7 @@ static void CompanyCheckBankrupt(Company *c)
|
||||
* join another company (cheat) the "unowned" company can bankrupt. */
|
||||
c->bankrupt_asked = MAX_UVALUE(CompanyMask);
|
||||
c->bankrupt_timeout = 0x456;
|
||||
free(cni);
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user