diff options
author | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2006-10-26 15:42:49 +0000 |
---|---|---|
committer | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2006-10-26 15:42:49 +0000 |
commit | 1b202ca21f055eeedccbdedf02e7d52b5d58312a (patch) | |
tree | 41a7db9210f59f8fa65054f0ac150aab04be075e /hcid | |
parent | b349c091ed2747c2af175ef0017d5eebb9f3fce3 (diff) |
Cleanup
Diffstat (limited to 'hcid')
-rw-r--r-- | hcid/dbus-service.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/hcid/dbus-service.c b/hcid/dbus-service.c index a7db85cc..fb574e67 100644 --- a/hcid/dbus-service.c +++ b/hcid/dbus-service.c @@ -164,11 +164,9 @@ static void forward_reply(DBusPendingCall *call, void *udata) dbus_message_set_no_reply(source_reply, TRUE); dbus_message_set_reply_serial(source_reply, dbus_message_get_serial(call_data->msg)); - /* FIXME: send fails only due to lack of memory */ - dbus_connection_send(call_data->conn, source_reply, NULL); + send_message_and_unref(call_data->conn, source_reply); dbus_message_unref(reply); - dbus_message_unref(source_reply); dbus_pending_call_unref (call); } @@ -427,8 +425,7 @@ void send_release(DBusConnection *conn, const char *id, const char *path) return; dbus_message_set_no_reply(msg, TRUE); - dbus_connection_send(conn, msg, NULL); - dbus_message_unref(msg); + send_message_and_unref(conn, msg); } void release_service_agents(DBusConnection *conn) |