Commit 7380d673 authored by Robert Knight's avatar Robert Knight

Ensure sessions are finished before attempting to delete them.

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=698096
parent 554d6bb8
...@@ -192,7 +192,11 @@ SessionManager::~SessionManager() ...@@ -192,7 +192,11 @@ SessionManager::~SessionManager()
saveShortcuts(); saveShortcuts();
// delete remaining sessions // delete remaining sessions
qDeleteAll(_sessions); foreach( Session* session , _sessions )
{
session->close();
delete session;
}
// free profiles // free profiles
QListIterator<Profile*> infoIter(_types.values()); QListIterator<Profile*> infoIter(_types.values());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment