Commit 15856467 authored by Will Stephenson's avatar Will Stephenson

Don't crash when saving session data; don't use a reference to a freed

object.
BUG: 232584

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=1108633
parent 3138e80f
...@@ -1393,11 +1393,11 @@ void SaveHistoryTask::jobResult(KJob* job) ...@@ -1393,11 +1393,11 @@ void SaveHistoryTask::jobResult(KJob* job)
KMessageBox::sorry( 0 , i18n("A problem occurred when saving the output.\n%1",job->errorString()) ); KMessageBox::sorry( 0 , i18n("A problem occurred when saving the output.\n%1",job->errorString()) );
} }
SaveJob& info = _jobSession[job]; TerminalCharacterDecoder * decoder = _jobSession[job].decoder;
_jobSession.remove(job); _jobSession.remove(job);
delete info.decoder; delete decoder;
// notify the world that the task is done // notify the world that the task is done
emit completed(true); emit completed(true);
......
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