summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-11-27 09:37:30 +0000
committerrubidium <rubidium@openttd.org>2011-11-27 09:37:30 +0000
commit251c7fbc8d260912855926b99cfd22520f9c578b (patch)
tree86da3b7b44b7210fbda1ac5c0f3e30a67e45cb45
parent80e55c9775ac64e862714e2a86b02d37967ac3e2 (diff)
downloadopenttd-251c7fbc8d260912855926b99cfd22520f9c578b.tar.xz
(svn r23341) -Fix (r23338): memory leak when converting rails
-rw-r--r--src/rail_cmd.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rail_cmd.cpp b/src/rail_cmd.cpp
index 9cd40c83e..412cd5023 100644
--- a/src/rail_cmd.cpp
+++ b/src/rail_cmd.cpp
@@ -1588,6 +1588,7 @@ CommandCost CmdConvertRail(TileIndex tile, DoCommandFlag flags, uint32 p1, uint3
}
}
+ delete iter;
return (cost.GetCost() == 0) ? error : cost;
}