mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:07:45 +00:00
AK::Buffer should not free unowned backing stores, duh.
This commit is contained in:
parent
0abc19b0ff
commit
f282df6617
1 changed files with 2 additions and 1 deletions
|
@ -23,7 +23,8 @@ public:
|
||||||
{
|
{
|
||||||
if (!m_elements)
|
if (!m_elements)
|
||||||
return;
|
return;
|
||||||
kfree(m_elements);
|
if (m_owned)
|
||||||
|
kfree(m_elements);
|
||||||
m_elements = nullptr;
|
m_elements = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue