(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:
@@ -30,8 +30,6 @@ struct Waypoint : PoolItem<Waypoint, WaypointID, &_Waypoint_pool> {
|
||||
Waypoint(TileIndex tile = 0);
|
||||
~Waypoint();
|
||||
|
||||
void QuickFree();
|
||||
|
||||
bool IsValid() const;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user