Changeset - r12841:b530a46e43f8
[Not reviewed]
master
0 1 0
rubidium - 15 years ago 2009-09-01 12:16:01
rubidium@openttd.org
(svn r17341) -Fix: memory leak when trying to bankrupt the local company
1 file changed with 1 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/economy.cpp
Show inline comments
 
@@ -533,12 +533,13 @@ static void CompanyCheckBankrupt(Company
 
				/* If we are in offline mode, leave the company playing. Eg. there
 
				 * is no THE-END, otherwise mark the client as spectator to make sure
 
				 * he/she is no long in control of this company. However... when you
 
				 * join another company (cheat) the "unowned" company can bankrupt. */
 
				c->bankrupt_asked = MAX_UVALUE(CompanyMask);
 
				c->bankrupt_timeout = 0x456;
 
				free(cni);
 
				break;
 
			}
 

	
 
			/* Close everything the owner has open */
 
			DeleteCompanyWindows(c->index);
 

	
0 comments (0 inline, 0 general)