mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 18:10:56 +09:00
AK: Use kfree_sized() in AK::Vector
This commit is contained in:
parent
c68c3fa69c
commit
c1e902acd9
Notes:
sideshowbarker
2024-07-18 09:20:12 +09:00
Author: https://github.com/awesomekling
Commit: c1e902acd9
1 changed files with 2 additions and 2 deletions
|
@ -346,7 +346,7 @@ public:
|
||||||
{
|
{
|
||||||
clear_with_capacity();
|
clear_with_capacity();
|
||||||
if (m_outline_buffer) {
|
if (m_outline_buffer) {
|
||||||
kfree(m_outline_buffer);
|
kfree_sized(m_outline_buffer, m_capacity * sizeof(StorageType));
|
||||||
m_outline_buffer = nullptr;
|
m_outline_buffer = nullptr;
|
||||||
}
|
}
|
||||||
reset_capacity();
|
reset_capacity();
|
||||||
|
@ -636,7 +636,7 @@ public:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (m_outline_buffer)
|
if (m_outline_buffer)
|
||||||
kfree(m_outline_buffer);
|
kfree_sized(m_outline_buffer, m_capacity * sizeof(StorageType));
|
||||||
m_outline_buffer = new_buffer;
|
m_outline_buffer = new_buffer;
|
||||||
m_capacity = new_capacity;
|
m_capacity = new_capacity;
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue