mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 09:09:43 +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: 1c1d0f5362
1 changed files with 4 additions and 0 deletions
|
@ -12,6 +12,10 @@ ExecSpace::ExecSpace()
|
||||||
|
|
||||||
ExecSpace::~ExecSpace()
|
ExecSpace::~ExecSpace()
|
||||||
{
|
{
|
||||||
|
if (!hookableAlloc) {
|
||||||
|
for (auto& area : m_areas)
|
||||||
|
kfree(area->memory);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef SERENITY
|
#ifdef SERENITY
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue