mirror of
https://github.com/rad4day/Waybar.git
synced 2025-07-14 07:02:30 +02:00
modules+util: fix actual (potential) memory leaks
This commit is contained in:
@ -7,8 +7,7 @@ namespace {
|
||||
class PrepareForSleep {
|
||||
private:
|
||||
PrepareForSleep() {
|
||||
GError *error = NULL;
|
||||
login1_connection = g_bus_get_sync(G_BUS_TYPE_SYSTEM, NULL, &error);
|
||||
login1_connection = g_bus_get_sync(G_BUS_TYPE_SYSTEM, NULL, NULL);
|
||||
if (!login1_connection) {
|
||||
spdlog::warn("Unable to connect to the SYSTEM Bus!...");
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user