Guard avahi_client_free
Fixes: #433 (closed)
I've browsed through some other code making use of a global avahi client and they similarly guard the call to avahi_client_free
.
For example, https://gitlab.gnome.org/GNOME/gvfs/blob/b53a0d9a8dd224ecc0d1185826a57d104ce0ee46/daemon/gvfsbackenddnssd.c#L818 has the guard. So does https://sources.debian.org/src/cups/2.3.0-7/scheduler/dirsvc.c/?hl=1338#L1338 or https://sources.debian.org/src/libreoffice/1:6.3.3-3/sd/source/ui/remotecontrol/AvahiNetworkService.cxx/?hl=210#L210.
Edited by Ondrej Holy