From 16fd9084eab7ed698e8855a7824f48ac1bd759da Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Tue, 18 Jul 2023 15:52:53 +0200 Subject: [PATCH] screencopy: nullcheck for empty buffer --- src/protocols/Screencopy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/protocols/Screencopy.cpp b/src/protocols/Screencopy.cpp index 07a591e7..a444f3d0 100644 --- a/src/protocols/Screencopy.cpp +++ b/src/protocols/Screencopy.cpp @@ -342,7 +342,7 @@ void CScreencopyProtocolManager::shareAllFrames(CMonitor* pMonitor, bool dmabuf) // share frame if correct output for (auto& f : m_vFramesAwaitingWrite) { - if (!f->pMonitor) { + if (!f->pMonitor || !f->buffer) { framesToRemove.push_back(f); continue; }