diff --git a/workspace.cpp b/workspace.cpp index 66818ee622..273c5a36a7 100644 --- a/workspace.cpp +++ b/workspace.cpp @@ -501,8 +501,7 @@ Workspace::~Workspace() delete startup; delete Placement::self(); delete client_keys_dialog; - foreach (SessionInfo * s, session) - delete s; + qDeleteAll(session); // TODO: ungrabXServer();