crashfix-string deconstructor

validate we aren't either empty or using the reserved empty string before we release the pointed to value (as a note, the latter at least shouldn't have been required, but might as well be paranoid about it)
This commit is contained in:
AzaezelX 2020-06-02 17:10:39 -05:00
parent 11f0ec2c0f
commit 81a4e47235

View file

@ -590,7 +590,8 @@ String::String(const UTF16 *str)
String::~String()
{
_string->release();
if (_string && _string != StringData::Empty())
_string->release();
}
//-----------------------------------------------------------------------------