mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-06 08:10:02 +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)
|
void operator delete(void* ptr)
|
||||||
{
|
{
|
||||||
if (is_constant_evaluated()) {
|
free(ptr);
|
||||||
if (reinterpret_cast<uintptr_t>(ptr) != UINTPTR_MAX)
|
|
||||||
free(ptr);
|
|
||||||
} else {
|
|
||||||
free(ptr);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
~StringData()
|
~StringData()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue