mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
ExecSpace should free its own allocations on destruction.
If hookableAlloc was used, we don't free anything. That's the client's responsibility.
This commit is contained in:
parent
ccd15e0590
commit
1c1d0f5362
Notes:
sideshowbarker
2024-07-19 18:40:04 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/1c1d0f53625
1 changed files with 4 additions and 0 deletions
|
@ -12,6 +12,10 @@ ExecSpace::ExecSpace()
|
|||
|
||||
ExecSpace::~ExecSpace()
|
||||
{
|
||||
if (!hookableAlloc) {
|
||||
for (auto& area : m_areas)
|
||||
kfree(area->memory);
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef SERENITY
|
||||
|
|
Loading…
Reference in a new issue