summaryrefslogtreecommitdiff
path: root/Kernel/VM/ContiguousVMObject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/VM/ContiguousVMObject.cpp')
-rw-r--r--Kernel/VM/ContiguousVMObject.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/VM/ContiguousVMObject.cpp b/Kernel/VM/ContiguousVMObject.cpp
index 243314c87e..2550cec829 100644
--- a/Kernel/VM/ContiguousVMObject.cpp
+++ b/Kernel/VM/ContiguousVMObject.cpp
@@ -12,7 +12,7 @@ namespace Kernel {
NonnullRefPtr<ContiguousVMObject> ContiguousVMObject::create_with_size(size_t size, size_t physical_alignment)
{
- return adopt(*new ContiguousVMObject(size, physical_alignment));
+ return adopt_ref(*new ContiguousVMObject(size, physical_alignment));
}
ContiguousVMObject::ContiguousVMObject(size_t size, size_t physical_alignment)