(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:
@@ -49,14 +49,9 @@ Group::Group(StringID str)
|
||||
}
|
||||
|
||||
Group::~Group()
|
||||
{
|
||||
this->QuickFree();
|
||||
this->string_id = STR_NULL;
|
||||
}
|
||||
|
||||
void Group::QuickFree()
|
||||
{
|
||||
DeleteName(this->string_id);
|
||||
this->string_id = STR_NULL;
|
||||
}
|
||||
|
||||
bool Group::IsValid() const
|
||||
|
Reference in New Issue
Block a user