From eafd07386e87e59213e3afa3cc1c939dfd1ae953 Mon Sep 17 00:00:00 2001 From: sharkautarch <128002472+sharkautarch@users.noreply.github.com> Date: Wed, 31 Jul 2024 18:36:38 -0400 Subject: [PATCH] wlserver: fix nullptr dereference on oPoint->pTimeline --- src/wlserver.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wlserver.cpp b/src/wlserver.cpp index a2e1985c3..12f743f60 100644 --- a/src/wlserver.cpp +++ b/src/wlserver.cpp @@ -135,7 +135,7 @@ void GamescopeTimelinePoint::Release() static std::optional TimelinePointToEventFd( const std::optional& oPoint ) { - if (!oPoint) + if (!oPoint || !(oPoint->pTimeline) ) return std::nullopt; uint64_t uSignalledPoint = 0;