summaryrefslogtreecommitdiff
path: root/Kernel/TimerQueue.h
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/TimerQueue.h')
-rw-r--r--Kernel/TimerQueue.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/TimerQueue.h b/Kernel/TimerQueue.h
index 33e741b388..f4eda76c41 100644
--- a/Kernel/TimerQueue.h
+++ b/Kernel/TimerQueue.h
@@ -97,7 +97,7 @@ public:
bool cancel_timer(Timer&);
bool cancel_timer(NonnullRefPtr<Timer>&& timer)
{
- return cancel_timer(timer.leak_ref());
+ return cancel_timer(*move(timer));
}
void fire();