summaryrefslogtreecommitdiffstats
path: root/src/modules/module-zeroconf-publish.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-05-01 04:12:45 +0200
committerLennart Poettering <lennart@poettering.net>2009-05-01 04:12:45 +0200
commit947bf5de6c7eaa1edc701f3f959dc16e091082dc (patch)
tree3582ed36d116a113eab342def8e857d04a83ce87 /src/modules/module-zeroconf-publish.c
parentd4b10d838a79a46f18876dbb4a3206b5e1c7bc09 (diff)
zeroconf: properly unref native protocol object
Diffstat (limited to 'src/modules/module-zeroconf-publish.c')
-rw-r--r--src/modules/module-zeroconf-publish.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/module-zeroconf-publish.c b/src/modules/module-zeroconf-publish.c
index 4f382c80..d72d2647 100644
--- a/src/modules/module-zeroconf-publish.c
+++ b/src/modules/module-zeroconf-publish.c
@@ -695,6 +695,9 @@ void pa__done(pa_module*m) {
if (u->avahi_poll)
pa_avahi_poll_free(u->avahi_poll);
+ if (u->native)
+ pa_native_protocol_unref(u->native);
+
pa_xfree(u->service_name);
pa_xfree(u);
}