(svn r10799) -Fix: only calling QuickFree and not the destructor on pool cleanups might cause memory leaks due to the way C++ works.

This commit is contained in:
rubidium
2007-08-05 21:20:55 +00:00
parent ab5fa3add2
commit 83e1fdcb01
15 changed files with 48 additions and 67 deletions

View File

@@ -37,6 +37,8 @@ Depot *GetDepotByTile(TileIndex tile)
*/
Depot::~Depot()
{
if (CleaningPool()) return;
/* Clear the depot from all order-lists */
RemoveOrderFromAllVehicles(OT_GOTO_DEPOT, this->index);