(svn r17341) -Fix: memory leak when trying to bankrupt the local company

This commit is contained in:
rubidium
2009-09-01 12:16:01 +00:00
parent d1b0754bbf
commit 846cd79ada

View File

@@ -536,6 +536,7 @@ static void CompanyCheckBankrupt(Company *c)
* join another company (cheat) the "unowned" company can bankrupt. */ * join another company (cheat) the "unowned" company can bankrupt. */
c->bankrupt_asked = MAX_UVALUE(CompanyMask); c->bankrupt_asked = MAX_UVALUE(CompanyMask);
c->bankrupt_timeout = 0x456; c->bankrupt_timeout = 0x456;
free(cni);
break; break;
} }