1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-08 05:27:14 +09:00

AK: Move String::~String() and String::destroy_string() to StringBase

This commit is contained in:
Dan Klishch 2023-10-28 15:42:33 -04:00 committed by Andrew Kaster
parent 54d149bc25
commit 1b09a1851e
Notes: sideshowbarker 2024-07-17 09:56:35 +09:00
4 changed files with 15 additions and 14 deletions

View file

@ -73,4 +73,10 @@ bool StringBase::operator==(StringBase const& other) const
return bytes() == other.bytes();
}
void StringBase::destroy_string()
{
if (!is_short_string())
m_data->unref();
}
}