wayland/drmlease: don't connect with nullptr parameter

This commit is contained in:
Xaver Hugl 2022-12-15 18:31:29 +01:00
parent 2c0091aacf
commit c2150988f2

View file

@ -401,7 +401,7 @@ void DrmLeaseV1Interface::grant(std::unique_ptr<KWin::DrmLease> &&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();
}