mirror of
https://github.com/KDE/konsole.git
synced 2026-02-01 02:41:34 -05:00
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
This commit is contained in:
@@ -1393,11 +1393,11 @@ void SaveHistoryTask::jobResult(KJob* job)
|
||||
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);
|
||||
|
||||
delete info.decoder;
|
||||
delete decoder;
|
||||
|
||||
// notify the world that the task is done
|
||||
emit completed(true);
|
||||
|
||||
Reference in New Issue
Block a user