mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-06 13:29:56 -05:00
cli: properly destruct cli object
This commit is contained in:
parent
b4d4f2b856
commit
3de5c49e42
1 changed files with 2 additions and 2 deletions
|
|
@ -93,7 +93,7 @@ int pa__init(pa_module*m) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pa_stdio_acquire() < 0) {
|
if (pa_stdio_acquire() < 0) {
|
||||||
pa_log("STDIN/STDUSE already in use.");
|
pa_log("STDIN/STDOUT already in use.");
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -132,7 +132,7 @@ fail:
|
||||||
void pa__done(pa_module*m) {
|
void pa__done(pa_module*m) {
|
||||||
pa_assert(m);
|
pa_assert(m);
|
||||||
|
|
||||||
if (m->core->running_as_daemon == 0) {
|
if (m->userdata) {
|
||||||
pa_cli_free(m->userdata);
|
pa_cli_free(m->userdata);
|
||||||
pa_stdio_release();
|
pa_stdio_release();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue