From 0d98bd49718a6622d5ef2d17455c60cc075f938e Mon Sep 17 00:00:00 2001 From: Niklas Hofmann Date: Sat, 9 Aug 2014 12:08:48 +0200 Subject: [PATCH] cleanup of entry group in discovery_stop --- src/discovery.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/discovery.c b/src/discovery.c index 3c26705e..cf1dd5e2 100644 --- a/src/discovery.c +++ b/src/discovery.c @@ -536,6 +536,13 @@ void discovery_stop(meshlink_handle_t *mesh) mesh->avahi_browser = NULL; } + if(mesh->avahi_group) + { + avahi_s_entry_group_reset(mesh->avahi_group); + avahi_s_entry_group_free(mesh->avahi_group); + mesh->avahi_group = NULL; + } + if(mesh->avahi_server != NULL) { avahi_server_free(mesh->avahi_server); -- 2.39.5