Commit 72ae03ba authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Utils: Fix possible crash in SynchronousProcess

Disconnect before deleting our data: Otherwise we will get called
via our signals again and then access members that were already
deleted.

Task-number: QTCREATORBUG-4361
Reviewed-by: Friedemann Kleint
parent 06700283
......@@ -251,6 +251,8 @@ SynchronousProcess::SynchronousProcess() :
SynchronousProcess::~SynchronousProcess()
{
disconnect(&m_d->m_timer, 0, this, 0);
disconnect(&m_d->m_process, 0, this, 0);
delete m_d;
}
......
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