mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-28 21:54:40 +03:00
AK: Override StringImpl's operator delete to silence valgrind.
This commit is contained in:
parent
92cda74724
commit
4ee39d6292
Notes:
sideshowbarker
2024-07-19 13:33:15 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/4ee39d62924
@ -1,8 +1,9 @@
|
||||
#pragma once
|
||||
|
||||
#include "RetainPtr.h"
|
||||
#include "Retainable.h"
|
||||
#include "Types.h"
|
||||
#include <AK/RetainPtr.h>
|
||||
#include <AK/Retainable.h>
|
||||
#include <AK/Types.h>
|
||||
#include <AK/kmalloc.h>
|
||||
|
||||
namespace AK {
|
||||
|
||||
@ -19,6 +20,11 @@ public:
|
||||
Retained<StringImpl> to_lowercase() const;
|
||||
Retained<StringImpl> to_uppercase() const;
|
||||
|
||||
void operator delete(void* ptr)
|
||||
{
|
||||
kfree(ptr);
|
||||
}
|
||||
|
||||
static StringImpl& the_empty_stringimpl();
|
||||
|
||||
~StringImpl();
|
||||
|
Loading…
Reference in New Issue
Block a user