Commit 6c894361 authored by Waqar Ahmed's avatar Waqar Ahmed
Browse files

Fix segfault on session change

Kate segfaults sometimes if you switch sessions because these processes
were still running. So, ensure they are killed when we are destructing.

(cherry picked from commit ae331887)
parent 8713a1f6
......@@ -187,6 +187,12 @@ KateGitBlamePluginView::KateGitBlamePluginView(KateGitBlamePlugin *plugin, KText
KateGitBlamePluginView::~KateGitBlamePluginView()
{
// ensure to kill, we segfault otherwise
m_blameInfoProc.kill();
m_blameInfoProc.waitForFinished();
m_showProc.kill();
m_showProc.waitForFinished();
m_mainWindow->guiFactory()->removeClient(this);
}
......
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