diff options
author | rubidium <rubidium@openttd.org> | 2009-09-01 12:16:01 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-09-01 12:16:01 +0000 |
commit | 50e794849a5bc221915372a075a9169e9cb58733 (patch) | |
tree | c1fa3a3d558ed29b84ff318467f370a945e2730b | |
parent | 317f34b3d23a714a067c3b4d3af5b45df066ed7c (diff) | |
download | openttd-50e794849a5bc221915372a075a9169e9cb58733.tar.xz |
(svn r17341) -Fix: memory leak when trying to bankrupt the local company
-rw-r--r-- | src/economy.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/economy.cpp b/src/economy.cpp index c7c7f4bca..554aab30c 100644 --- a/src/economy.cpp +++ b/src/economy.cpp @@ -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; } |