Skip to content

Commit 3cc99df

Browse files
committed
wayland: revert back to surface->deleteLater()
1 parent c272c97 commit 3cc99df

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/wayland/session_lock.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ void WlSessionLock::updateSurfaces(bool show, WlSessionLock* old) {
7373
for (auto& [screen, surface]: map) {
7474
if (!screens.contains(screen)) {
7575
this->surfaces.remove(screen);
76-
delete surface;
76+
surface->deleteLater();
7777
}
7878
}
7979

@@ -150,7 +150,7 @@ void WlSessionLock::unlock() {
150150
}
151151

152152
for (auto* surface: this->surfaces) {
153-
delete surface;
153+
surface->deleteLater();
154154
}
155155
this->surfaces.clear();
156156

0 commit comments

Comments
 (0)