mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 12:20:00 +01:00
Revert "AK: Don't try to free(UINTPTR_MAX) in StringData::delete()"
This reverts commit 693fe76d1c.
This commit is contained in:
parent
209d05fcb4
commit
c39eddaef8
|
|
@ -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…
Reference in New Issue
Block a user