diff --git a/src/wayland/plasmavirtualdesktop_interface.cpp b/src/wayland/plasmavirtualdesktop_interface.cpp index 9aa8cf7227..540efd430b 100644 --- a/src/wayland/plasmavirtualdesktop_interface.cpp +++ b/src/wayland/plasmavirtualdesktop_interface.cpp @@ -246,8 +246,8 @@ void PlasmaVirtualDesktopManagementInterface::removeDesktop(const QString &id) org_kde_plasma_virtual_desktop_management_send_desktop_removed(*it, id.toUtf8().constData()); } - d->desktops.erase(deskIt); (*deskIt)->deleteLater(); + d->desktops.erase(deskIt); } QList PlasmaVirtualDesktopManagementInterface::desktops() const