Skip to content

Commit

Permalink
Tray module cause error g_bus_unwatch_name()
Browse files Browse the repository at this point in the history
Signed-off-by: Viktar Lukashonak <myxabeer@gmail.com>
  • Loading branch information
LukashonakV committed Jun 6, 2023
1 parent d638610 commit 3af1853
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
4 changes: 0 additions & 4 deletions src/modules/sni/host.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ Host::~Host() {
Gio::DBus::unwatch_name(bus_name_id_);
bus_name_id_ = 0;
}
if (watcher_id_ > 0) {
Gio::DBus::unwatch_name(watcher_id_);
watcher_id_ = 0;
}
g_cancellable_cancel(cancellable_);
g_clear_object(&cancellable_);
g_clear_object(&watcher_);
Expand Down
7 changes: 1 addition & 6 deletions src/modules/sni/watcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,7 @@ Watcher::Watcher()
watcher_(sn_watcher_skeleton_new()) {}

Watcher::~Watcher() {
if (hosts_ != nullptr) {
g_slist_free_full(hosts_, gfWatchFree);
hosts_ = nullptr;
}

if (items_ != nullptr) {
if (items_ != nullptr) {
g_slist_free_full(items_, gfWatchFree);
items_ = nullptr;
}
Expand Down

0 comments on commit 3af1853

Please sign in to comment.