13
0

fix crash on SystemExec::Terminate

if Terminated() connects in the same thread and deletes the class itself
the closure in interposer_thread() can fail.
This commit is contained in:
Robin Gareus 2015-10-23 23:27:15 +02:00
parent 90aec831cb
commit eb6b4f4b15

View File

@ -530,6 +530,7 @@ SystemExec::output_interposer()
ReadStdout(data, bytesRead);/* EMIT SIGNAL */
}
Terminated();/* EMIT SIGNAL */
pthread_exit(0);
}
void
@ -896,6 +897,7 @@ SystemExec::output_interposer()
ReadStdout(rv, r);/* EMIT SIGNAL */
}
Terminated();/* EMIT SIGNAL */
pthread_exit(0);
}
void