[Xfce4-commits] [apps/xfce4-screensaver] 01/01: Add debug for PrepareForSleep, free the used error
noreply at xfce.org
noreply at xfce.org
Wed Jun 5 12:12:45 CEST 2019
This is an automated email from the git hooks/post-receive script.
b l u e s a b r e p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository apps/xfce4-screensaver.
commit b35b5c07c72f54b5550b5b24231fa37b3c3ff5eb
Author: Sean Davis <smd.seandavis at gmail.com>
Date: Wed Jun 5 06:12:32 2019 -0400
Add debug for PrepareForSleep, free the used error
---
src/gs-listener-dbus.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/gs-listener-dbus.c b/src/gs-listener-dbus.c
index 1e8df63..66d56df 100644
--- a/src/gs-listener-dbus.c
+++ b/src/gs-listener-dbus.c
@@ -1478,6 +1478,8 @@ listener_dbus_handle_system_message (DBusConnection *connection,
gboolean active = 0;
DBusError error;
+ gs_debug ("Handling Logind PrepareForSleep");
+
dbus_error_init (&error);
dbus_message_get_args (message, &error, DBUS_TYPE_BOOLEAN, &active, DBUS_TYPE_INVALID);
if (active) {
@@ -1493,6 +1495,10 @@ listener_dbus_handle_system_message (DBusConnection *connection,
g_signal_emit (listener, signals[SHOW_MESSAGE], 0, NULL, NULL, NULL);
}
+ if (dbus_error_is_set (&error)) {
+ dbus_error_free (&error);
+ }
+
return DBUS_HANDLER_RESULT_HANDLED;
} else if (dbus_message_is_signal (message, DBUS_INTERFACE_PROPERTIES, "PropertiesChanged")) {
if (_listener_message_path_is_our_session (listener, message)) {
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list