diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2008-09-06 02:14:11 +0300 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2008-09-06 02:14:11 +0300 |
commit | c0e36773cd39036911e2691e90a1549f95713b27 (patch) | |
tree | 1dfd759363deda37fbd470ad9252cf4700a0c9b6 /network | |
parent | e39e47274ac26e9900067f55e6a2090e3c861d2e (diff) | |
parent | 91402bad9a182902c242f98f1e5f55d4190b4d01 (diff) |
Merge branch 'master' of ssh://master.kernel.org/pub/scm/bluetooth/bluez
Diffstat (limited to 'network')
-rw-r--r-- | network/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/network/main.c b/network/main.c index 2307a165..b81c111b 100644 --- a/network/main.c +++ b/network/main.c @@ -32,11 +32,10 @@ #include "plugin.h" #include "manager.h" -static DBusConnection *connection = NULL; +static DBusConnection *connection; static int network_init(void) { - connection = dbus_bus_get(DBUS_BUS_SYSTEM, NULL); if (connection == NULL) return -EIO; @@ -52,6 +51,7 @@ static int network_init(void) static void network_exit(void) { network_manager_exit(); + dbus_connection_unref(connection); } |