mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-06 13:29:56 -05:00
add new pa_pipe_close() API to close two fds at the same time
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1812 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
7f92542420
commit
d9c4c9509d
8 changed files with 21 additions and 27 deletions
|
|
@ -605,10 +605,7 @@ void pa_mainloop_free(pa_mainloop* m) {
|
|||
|
||||
pa_xfree(m->pollfds);
|
||||
|
||||
if (m->wakeup_pipe[0] >= 0)
|
||||
pa_assert_se(pa_close(m->wakeup_pipe[0]) == 0);
|
||||
if (m->wakeup_pipe[1] >= 0)
|
||||
pa_assert_se(pa_close(m->wakeup_pipe[1]) == 0);
|
||||
pa_close_pipe(m->wakeup_pipe);
|
||||
|
||||
pa_xfree(m);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue