summaryrefslogtreecommitdiffstats
path: root/input
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-09-06 01:10:56 +0200
committerMarcel Holtmann <marcel@holtmann.org>2008-09-06 01:10:56 +0200
commitc74f11481aabe51612c7200e1e3ab91f7f1c4abb (patch)
tree8ce09cbb3bd482becfe1057aec9a530126b6e0a7 /input
parent8b2e688eaf5b71006c72cf91a8e4df3c0c41c306 (diff)
Fix D-Bus connection init
Diffstat (limited to 'input')
-rw-r--r--input/main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/input/main.c b/input/main.c
index 4851324c..8df96891 100644
--- a/input/main.c
+++ b/input/main.c
@@ -35,8 +35,6 @@
#include "logging.h"
#include "manager.h"
-DBusConnection *connection = NULL;
-
static GKeyFile *load_config_file(const char *file)
{
GKeyFile *keyfile;
@@ -54,6 +52,8 @@ static GKeyFile *load_config_file(const char *file)
return keyfile;
}
+static DBusConnection *connection;
+
static int input_init(void)
{
GKeyFile *config;
@@ -78,6 +78,7 @@ static int input_init(void)
static void input_exit(void)
{
input_manager_exit();
+
dbus_connection_unref(connection);
}