From c2150988f2a8c4731eb8437befffbfeaacb8dea9 Mon Sep 17 00:00:00 2001 From: Xaver Hugl Date: Thu, 15 Dec 2022 18:31:29 +0100 Subject: [PATCH] wayland/drmlease: don't connect with nullptr parameter --- src/wayland/drmlease_v1_interface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wayland/drmlease_v1_interface.cpp b/src/wayland/drmlease_v1_interface.cpp index 3faab10012..266dee984c 100644 --- a/src/wayland/drmlease_v1_interface.cpp +++ b/src/wayland/drmlease_v1_interface.cpp @@ -401,7 +401,7 @@ void DrmLeaseV1Interface::grant(std::unique_ptr &&lease) KWin::FileDescriptor tmp = std::move(lease->fd()); send_lease_fd(tmp.get()); m_lease = std::move(lease); - connect(lease.get(), &KWin::DrmLease::revokeRequested, this, &DrmLeaseV1Interface::revoke); + connect(m_lease.get(), &KWin::DrmLease::revokeRequested, this, &DrmLeaseV1Interface::revoke); for (const auto &connector : std::as_const(m_connectors)) { connector->withdraw(); }