From 4ee39d62924da5c1132ebc31040e764c2dfb6cae Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 18 Jun 2019 09:26:36 +0200 Subject: [PATCH] AK: Override StringImpl's operator delete to silence valgrind. --- AK/StringImpl.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/AK/StringImpl.h b/AK/StringImpl.h index babca34e10..825b17af4b 100644 --- a/AK/StringImpl.h +++ b/AK/StringImpl.h @@ -1,8 +1,9 @@ #pragma once -#include "RetainPtr.h" -#include "Retainable.h" -#include "Types.h" +#include +#include +#include +#include namespace AK { @@ -19,6 +20,11 @@ public: Retained to_lowercase() const; Retained to_uppercase() const; + void operator delete(void* ptr) + { + kfree(ptr); + } + static StringImpl& the_empty_stringimpl(); ~StringImpl();