From 1ceaff27c243dd254b08ff750f91a187574259ec Mon Sep 17 00:00:00 2001 From: Erik Reider <35975961+ErikReider@users.noreply.github.com> Date: Thu, 20 Oct 2022 12:38:52 +0200 Subject: [PATCH] Fixed gamemode module segfaulting when disconnecting monitor --- src/modules/gamemode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/gamemode.cpp b/src/modules/gamemode.cpp index c7accd58..7129297d 100644 --- a/src/modules/gamemode.cpp +++ b/src/modules/gamemode.cpp @@ -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;