mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 15:54:57 +01:00
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:
parent
90aec831cb
commit
eb6b4f4b15
1 changed files with 2 additions and 0 deletions
|
|
@ -530,6 +530,7 @@ SystemExec::output_interposer()
|
||||||
ReadStdout(data, bytesRead);/* EMIT SIGNAL */
|
ReadStdout(data, bytesRead);/* EMIT SIGNAL */
|
||||||
}
|
}
|
||||||
Terminated();/* EMIT SIGNAL */
|
Terminated();/* EMIT SIGNAL */
|
||||||
|
pthread_exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
@ -896,6 +897,7 @@ SystemExec::output_interposer()
|
||||||
ReadStdout(rv, r);/* EMIT SIGNAL */
|
ReadStdout(rv, r);/* EMIT SIGNAL */
|
||||||
}
|
}
|
||||||
Terminated();/* EMIT SIGNAL */
|
Terminated();/* EMIT SIGNAL */
|
||||||
|
pthread_exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue