summaryrefslogtreecommitdiff
path: root/polyp/cli.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2004-11-18 20:50:44 +0000
committerLennart Poettering <lennart@poettering.net>2004-11-18 20:50:44 +0000
commit8641af3c6d11e3e6710cb946e9a93d0e9f639519 (patch)
treece72b56c7460fed94808ee8023fad89df27c7e12 /polyp/cli.c
parenteef235d8795df740eb63cb135bd187b7ab9ac4ea (diff)
downloadpulseaudio-8641af3c6d11e3e6710cb946e9a93d0e9f639519.tar.gz
* some iochannel fixes
* introduce reference counting in ioline * fix memory leak in socket-client.c * fix double-free error in protocol-esound.c git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@293 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp/cli.c')
-rw-r--r--polyp/cli.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/polyp/cli.c b/polyp/cli.c
index 2ff359922..7780d03d8 100644
--- a/polyp/cli.c
+++ b/polyp/cli.c
@@ -92,7 +92,8 @@ struct pa_cli* pa_cli_new(struct pa_core *core, struct pa_iochannel *io, struct
void pa_cli_free(struct pa_cli *c) {
assert(c);
- pa_ioline_free(c->line);
+ pa_ioline_close(c->line);
+ pa_ioline_unref(c->line);
pa_client_free(c->client);
pa_xfree(c);
}