]> git.meshlink.io Git - meshlink/commitdiff
cleanup of entry group in discovery_stop
authorNiklas Hofmann <niklas.hofmann@everbase.net>
Sat, 9 Aug 2014 10:08:48 +0000 (12:08 +0200)
committerNiklas Hofmann <niklas.hofmann@everbase.net>
Sat, 9 Aug 2014 10:08:48 +0000 (12:08 +0200)
src/discovery.c

index 3c26705efeeeadbe2394a4859a7ccd0480d7c808..cf1dd5e214fb19c34271fa9af540b4edb9331ebf 100644 (file)
@@ -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);