mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:58:11 +00:00
Kernel: Use move() in Region::try_clone() to avoid a VMObject::unref()
This commit is contained in:
parent
c482508aa1
commit
9ddccbc6da
1 changed files with 1 additions and 1 deletions
|
@ -95,7 +95,7 @@ ErrorOr<NonnullOwnPtr<Region>> Region::try_clone()
|
|||
clone_region_name = TRY(m_name->try_clone());
|
||||
|
||||
auto clone_region = TRY(Region::try_create_user_accessible(
|
||||
m_range, vmobject_clone, m_offset_in_vmobject, move(clone_region_name), access(), m_cacheable ? Cacheable::Yes : Cacheable::No, m_shared));
|
||||
m_range, move(vmobject_clone), m_offset_in_vmobject, move(clone_region_name), access(), m_cacheable ? Cacheable::Yes : Cacheable::No, m_shared));
|
||||
|
||||
if (m_stack) {
|
||||
VERIFY(is_readable());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue