mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 04:25:13 +00:00
Revert "AK: Don't try to free(UINTPTR_MAX) in StringData::delete()"
This reverts commit 693fe76d1c
.
This commit is contained in:
parent
693fe76d1c
commit
a9e80b3df1
1 changed files with 1 additions and 6 deletions
|
@ -66,12 +66,7 @@ public:
|
|||
|
||||
void operator delete(void* ptr)
|
||||
{
|
||||
if (is_constant_evaluated()) {
|
||||
if (reinterpret_cast<uintptr_t>(ptr) != UINTPTR_MAX)
|
||||
free(ptr);
|
||||
} else {
|
||||
free(ptr);
|
||||
}
|
||||
free(ptr);
|
||||
}
|
||||
|
||||
~StringData()
|
||||
|
|
Loading…
Add table
Reference in a new issue