From: Niklas Hofmann Date: Sat, 9 Aug 2014 10:08:48 +0000 (+0200) Subject: cleanup of entry group in discovery_stop X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=0d98bd49718a6622d5ef2d17455c60cc075f938e;p=meshlink cleanup of entry group in discovery_stop --- 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);