1
0
Fork 0
mirror of https://github.com/tuxedocomputers/tuxedo-touchpad-switch.git synced 2025-01-18 11:41:10 +01:00

Fix uncritical memory leak on exit

This commit is contained in:
Werner Sembach 2022-03-04 12:35:40 +01:00
parent 399c7de836
commit cd61a8c0b8
2 changed files with 4 additions and 4 deletions

View file

@ -106,7 +106,7 @@ int setup_gnome(int lockfile_arg) {
}
// sync on xsession change
GDBusProxy *session_manager_properties = g_dbus_proxy_new_for_bus_sync(G_BUS_TYPE_SESSION,
session_manager_properties = g_dbus_proxy_new_for_bus_sync(G_BUS_TYPE_SESSION,
G_DBUS_PROXY_FLAGS_NONE, NULL,
"org.gnome.SessionManager",
"/org/gnome/SessionManager",
@ -122,7 +122,7 @@ int setup_gnome(int lockfile_arg) {
}
// sync on wakeup
GDBusProxy *display_config_properties = g_dbus_proxy_new_for_bus_sync(G_BUS_TYPE_SESSION,
display_config_properties = g_dbus_proxy_new_for_bus_sync(G_BUS_TYPE_SESSION,
G_DBUS_PROXY_FLAGS_NONE, NULL,
"org.gnome.Mutter.DisplayConfig",
"/org/gnome/Mutter/DisplayConfig",

View file

@ -205,7 +205,7 @@ int setup_kde(int lockfile_arg) {
}
// sync on config and xsession change
GDBusProxy *kded5_modules_touchpad = g_dbus_proxy_new_for_bus_sync(G_BUS_TYPE_SESSION,
kded5_modules_touchpad = g_dbus_proxy_new_for_bus_sync(G_BUS_TYPE_SESSION,
G_DBUS_PROXY_FLAGS_NONE, NULL,
"org.kde.kded5",
object_path,
@ -221,7 +221,7 @@ int setup_kde(int lockfile_arg) {
}
// sync on wakeup
GDBusProxy *solid_power_management = g_dbus_proxy_new_for_bus_sync(G_BUS_TYPE_SESSION,
solid_power_management = g_dbus_proxy_new_for_bus_sync(G_BUS_TYPE_SESSION,
G_DBUS_PROXY_FLAGS_NONE, NULL,
"org.kde.Solid.PowerManagement",
"/org/kde/Solid/PowerManagement/Actions/SuspendSession",