mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 10:18:15 +09:00
Kernel: Add operator delete for KString
This doesn't change anything because our global operator delete also calls kfree() - however instead of relying on this implementation detail this makes this dependency more explicit.
This commit is contained in:
parent
f0e9fd09b4
commit
596361791c
Notes:
sideshowbarker
2024-07-18 16:59:43 +09:00
Author: https://github.com/gunnarbeutner
Commit: 596361791c
Pull-request: https://github.com/SerenityOS/serenity/pull/7704
2 changed files with 7 additions and 0 deletions
|
@ -57,4 +57,9 @@ OwnPtr<KString> KString::try_clone() const
|
|||
return try_create(view());
|
||||
}
|
||||
|
||||
void KString::operator delete(void* string)
|
||||
{
|
||||
kfree(string);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue