From 297c9a8613aa1a7bd68ebbd98eff17be87334564 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Fri, 16 Sep 2016 12:34:15 +0200 Subject: [PATCH] x11: Reset dbus_connection global variable on exit To ensure that the state of the variable is correct. This won't be needed if X11 is never reinitialised. --- gfx/common/x11_common.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gfx/common/x11_common.c b/gfx/common/x11_common.c index 77bd77b519..d1b53ba60f 100644 --- a/gfx/common/x11_common.c +++ b/gfx/common/x11_common.c @@ -89,6 +89,7 @@ static void dbus_close_connection(void) dbus_connection_close(dbus_connection); dbus_connection_unref(dbus_connection); + dbus_connection = NULL; } static void dbus_screensaver_inhibit(void)