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) {