(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:
@@ -160,8 +160,6 @@ struct Town : PoolItem<Town, TownID, &_Town_pool> {
|
||||
~Town();
|
||||
|
||||
bool IsValid() const { return this->xy != 0; }
|
||||
|
||||
void QuickFree();
|
||||
};
|
||||
|
||||
struct HouseSpec {
|
||||
|
Reference in New Issue
Block a user