diff options
author | Daniel Stone <daniel@fooishbar.org> | 2006-10-18 10:59:07 +0300 |
---|---|---|
committer | Daniel Stone <daniels@endtroducing.fooishbar.org> | 2006-10-20 00:43:10 +0300 |
commit | a8a0abdbea0573c861a5af9d58f3ce66790455ca (patch) | |
tree | fcbd3ae0a5eaced7055d8ffbe0a5bfaaa4479f16 /config | |
parent | 80642f37d40216035786eaf490952d16f6b5f597 (diff) |
config/dbus: always unref the connection, not close
Diffstat (limited to 'config')
-rw-r--r-- | config/config.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/config/config.c b/config/config.c index 4d12a0758..5b0d90d74 100644 --- a/config/config.c +++ b/config/config.c @@ -265,7 +265,7 @@ configInitialise() } if (!dbus_connection_get_unix_fd(bus, &configfd)) { - dbus_connection_close(bus); + dbus_connection_unref(bus); configfd = -1; FatalError("[dbus] couldn't get fd for bus\n"); return; @@ -275,7 +275,7 @@ configInitialise() if (!dbus_bus_request_name(bus, busname, 0, &error) || dbus_error_is_set(&error)) { dbus_error_free(&error); - dbus_connection_close(bus); + dbus_connection_unref(bus); configfd = -1; FatalError("[dbus] couldn't take over org.x.config: %s (%s)\n", error.name, error.message); @@ -287,7 +287,7 @@ configInitialise() if (dbus_error_is_set(&error)) { dbus_error_free(&error); dbus_bus_release_name(bus, busname, &error); - dbus_connection_close(bus); + dbus_connection_unref(bus); configfd = -1; FatalError("[dbus] couldn't match X.Org rule: %s (%s)\n", error.name, error.message); @@ -299,7 +299,7 @@ configInitialise() configfd = -1; dbus_bus_release_name(bus, busname, &error); dbus_bus_remove_match(bus, MATCH_RULE, &error); - dbus_connection_close(bus); + dbus_connection_unref(bus); FatalError("[dbus] couldn't register object path\n"); return; } |