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:
parent
399c7de836
commit
cd61a8c0b8
2 changed files with 4 additions and 4 deletions
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue