From 464dd79246eedb0da00514b5b9c68a8969b47df0 Mon Sep 17 00:00:00 2001 From: vaxerski Date: Fri, 6 Jan 2023 16:13:45 +0100 Subject: [PATCH] fix crashes on monitor ls remove --- src/helpers/Monitor.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/helpers/Monitor.cpp b/src/helpers/Monitor.cpp index b87a995e..c728aeb4 100644 --- a/src/helpers/Monitor.cpp +++ b/src/helpers/Monitor.cpp @@ -196,6 +196,7 @@ void CMonitor::onDisconnect() { for (auto& ls : m_aLayerSurfaceLists[i]) { wlr_layer_surface_v1_destroy(ls->layerSurface); } + m_aLayerSurfaceLists[i].clear(); } if (!BACKUPMON) {