mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
Fixed gamemode module segfaulting when disconnecting monitor
This commit is contained in:
parent
527017baca
commit
1ceaff27c2
@ -109,7 +109,7 @@ Gamemode::Gamemode(const std::string& id, const Json::Value& config)
|
||||
}
|
||||
|
||||
Gamemode::~Gamemode() {
|
||||
if (gamemode_proxy) gamemode_proxy->unreference();
|
||||
if (gamemode_proxy) gamemode_proxy.reset();
|
||||
if (gamemodeWatcher_id > 0) {
|
||||
Gio::DBus::unwatch_name(gamemodeWatcher_id);
|
||||
gamemodeWatcher_id = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user