mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-11 13:36:13 +03:00
AK::Buffer should not free unowned backing stores, duh.
This commit is contained in:
parent
0abc19b0ff
commit
f282df6617
Notes:
sideshowbarker
2024-07-19 18:50:58 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/f282df66172
@ -23,7 +23,8 @@ public:
|
||||
{
|
||||
if (!m_elements)
|
||||
return;
|
||||
kfree(m_elements);
|
||||
if (m_owned)
|
||||
kfree(m_elements);
|
||||
m_elements = nullptr;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user