Skip to content

Commit

Permalink
free avahiPoll as well
Browse files Browse the repository at this point in the history
  • Loading branch information
philippe44 committed Nov 28, 2023
1 parent 0a15d74 commit 66346ef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main/platform/linux/MDNSService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,9 @@ implMDNSService::~implMDNSService() {
#ifndef BELL_DISABLE_AVAHI
if (implMDNSService::avahiClient) {
avahi_client_free(implMDNSService::avahiClient);
avahi_simple_poll_free(implMDNSService::avahiPoll);
implMDNSService::avahiClient = nullptr;
implMDNSService::avahiPoll = nullptr;
} else
#endif
if (implMDNSService::mdnsServer) {
Expand Down

0 comments on commit 66346ef

Please sign in to comment.