(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:
@@ -352,8 +352,6 @@ struct Vehicle : PoolItem<Vehicle, VehicleID, &_Vehicle_pool> {
|
||||
/** We want to 'destruct' the right class. */
|
||||
virtual ~Vehicle();
|
||||
|
||||
void QuickFree();
|
||||
|
||||
void BeginLoading();
|
||||
void LeaveStation();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user