diff options
author | Lennart Poettering <lennart@poettering.net> | 2009-09-17 04:04:54 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2009-09-17 04:04:54 +0200 |
commit | 3de5c49e4289bb646919bdced6fccb82ced51ad0 (patch) | |
tree | 886a842c37afe44dd47f71d1f19d854f24439c90 | |
parent | b4d4f2b856cd0d5e24f777a088b9d4462567dac0 (diff) |
cli: properly destruct cli object
-rw-r--r-- | src/modules/module-cli.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/module-cli.c b/src/modules/module-cli.c index 60a9d460..6bd0f4fc 100644 --- a/src/modules/module-cli.c +++ b/src/modules/module-cli.c @@ -93,7 +93,7 @@ int pa__init(pa_module*m) { } if (pa_stdio_acquire() < 0) { - pa_log("STDIN/STDUSE already in use."); + pa_log("STDIN/STDOUT already in use."); goto fail; } @@ -132,7 +132,7 @@ fail: void pa__done(pa_module*m) { pa_assert(m); - if (m->core->running_as_daemon == 0) { + if (m->userdata) { pa_cli_free(m->userdata); pa_stdio_release(); } |