lib: release acquired bus reference

On each gamemode_request call a new connection to d-bus is opened
but the reference was never release thus leaking the connection
and associated memory.
This commit is contained in:
Christian Kellner 2019-04-30 11:46:50 +02:00
parent 6291c13cf4
commit 393a5e8f41

View File

@ -92,6 +92,7 @@ static int gamemode_request(const char *function, int arg)
strerror(-ret)); strerror(-ret));
} }
} }
sd_bus_unref(bus);
} }
return result; return result;