summaryrefslogtreecommitdiffstats
path: root/serial
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 /serial
parent8b2e688eaf5b71006c72cf91a8e4df3c0c41c306 (diff)
Fix D-Bus connection init
Diffstat (limited to 'serial')
-rw-r--r--serial/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/serial/main.c b/serial/main.c
index 50dda095..39df1650 100644
--- a/serial/main.c
+++ b/serial/main.c
@@ -32,7 +32,7 @@
#include "plugin.h"
#include "manager.h"
-static DBusConnection *connection = NULL;
+static DBusConnection *connection;
static int serial_init(void)
{
@@ -51,6 +51,7 @@ static int serial_init(void)
static void serial_exit(void)
{
serial_manager_exit();
+
dbus_connection_unref(connection);
}