summaryrefslogtreecommitdiffstats
path: root/polyp/protocol-native.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2004-08-15 00:02:26 +0000
committerLennart Poettering <lennart@poettering.net>2004-08-15 00:02:26 +0000
commitc17545108b33162fb186f797b8a408511e9252f4 (patch)
treeec6fdd4bce3d8aff48519ef6c5bfafe46aef5340 /polyp/protocol-native.c
parent22cb23eedb2eae7c79dc8fcf395be08bfc666256 (diff)
proper ref counting for more objects
some documentation update git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@124 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp/protocol-native.c')
-rw-r--r--polyp/protocol-native.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/polyp/protocol-native.c b/polyp/protocol-native.c
index 247851fc..0d265e33 100644
--- a/polyp/protocol-native.c
+++ b/polyp/protocol-native.c
@@ -306,8 +306,9 @@ static void connection_free(struct connection *c) {
upload_stream_free((struct upload_stream*) o);
pa_idxset_free(c->output_streams, NULL, NULL);
- pa_pdispatch_free(c->pdispatch);
- pa_pstream_free(c->pstream);
+ pa_pdispatch_unref(c->pdispatch);
+ pa_pstream_close(c->pstream);
+ pa_pstream_unref(c->pstream);
pa_client_free(c->client);
if (c->subscription)
@@ -1330,6 +1331,6 @@ void pa_protocol_native_free(struct pa_protocol_native *p) {
while ((c = pa_idxset_first(p->connections, NULL)))
connection_free(c);
pa_idxset_free(p->connections, NULL, NULL);
- pa_socket_server_free(p->server);
+ pa_socket_server_unref(p->server);
pa_xfree(p);
}