fixed some more crashes

This commit is contained in:
vaxerski
2022-04-10 16:19:49 +02:00
parent 743efafbde
commit 92bfe6f13e
4 changed files with 17 additions and 15 deletions

View File

@@ -73,7 +73,6 @@ void SubsurfaceTree::destroySurfaceTree(SSurfaceTreeNode* pNode) {
return;
}
for (auto& c : pNode->childSubsurfaces)
destroySubsurface(&c);
@@ -83,6 +82,8 @@ void SubsurfaceTree::destroySurfaceTree(SSurfaceTreeNode* pNode) {
pNode->hyprListener_destroy.removeCallback();
pNode->hyprListener_newSubsurface.removeCallback();
surfaceTreeNodes.remove(*pNode);
Debug::log(LOG, "SurfaceTree Node removed");
}