Commit 49cd9b82 authored by Kurt Hindenburg's avatar Kurt Hindenburg
Browse files

Fix potential use after free issue

parent 78dbc0a0
......@@ -1154,6 +1154,8 @@ QString Session::getDynamicTitle()
if (dir.isEmpty()) {
// update current directory from process
updateWorkingDirectory();
// Previous process may have been freed in updateSessionProcessInfo()
process = getProcessInfo();
dir = process->currentDir(&ok);
}
if(!ok) {
......
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