1
0
Fork 0
mirror of https://github.com/hyprwm/Hyprland synced 2025-03-02 13:23:02 +01:00

screencopy: nullcheck for empty buffer

This commit is contained in:
vaxerski 2023-07-18 15:52:53 +02:00
parent 0ba28a46fd
commit 16fd9084ea

View file

@ -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;
}