(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:
@@ -27,14 +27,9 @@ Sign::Sign(StringID string)
|
||||
}
|
||||
|
||||
Sign::~Sign()
|
||||
{
|
||||
this->QuickFree();
|
||||
this->str = STR_NULL;
|
||||
}
|
||||
|
||||
void Sign::QuickFree()
|
||||
{
|
||||
DeleteName(this->str);
|
||||
this->str = STR_NULL;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user