diff --git a/src/modules/sni/watcher.cpp b/src/modules/sni/watcher.cpp index 6881677..663fdcd 100644 --- a/src/modules/sni/watcher.cpp +++ b/src/modules/sni/watcher.cpp @@ -14,7 +14,7 @@ Watcher::Watcher() watcher_(sn_watcher_skeleton_new()) {} Watcher::~Watcher() { - if (items_ != nullptr) { + if (items_ != nullptr) { g_slist_free_full(items_, gfWatchFree); items_ = nullptr; }