From: Anders Carlsson Date: Sun, 2 Feb 2003 00:29:56 +0000 (+0000) Subject: 2003-02-02 Anders Carlsson X-Git-Tag: dbus-0.3~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bfe3127d83384659c22478a96dcd7639c3a3dc08;p=platform%2Fupstream%2Fdbus.git 2003-02-02 Anders Carlsson * bus/driver.c: (bus_driver_handle_service_exists): Don't unref the incoming message. --- diff --git a/ChangeLog b/ChangeLog index 06e5576..167e0da 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2003-02-02 Anders Carlsson + * bus/driver.c: (bus_driver_handle_service_exists): + Don't unref the incoming message. + +2003-02-02 Anders Carlsson + * dbus/dbus.h: Add dbus-address.h and dbus-bus.h 2003-02-02 Anders Carlsson diff --git a/bus/driver.c b/bus/driver.c index 426db3f..29adae7 100644 --- a/bus/driver.c +++ b/bus/driver.c @@ -353,14 +353,13 @@ bus_driver_handle_service_exists (DBusConnection *connection, service = bus_service_lookup (&service_name, FALSE); _DBUS_HANDLE_OOM ((reply = dbus_message_new_reply (DBUS_MESSAGE_ACQUIRE_SERVICE, message))); - _DBUS_HANDLE_OOM (dbus_message_set_sender (message, DBUS_SERVICE_DBUS)); + _DBUS_HANDLE_OOM (dbus_message_set_sender (reply, DBUS_SERVICE_DBUS)); - _DBUS_HANDLE_OOM (dbus_message_append_fields (message, + _DBUS_HANDLE_OOM (dbus_message_append_fields (reply, DBUS_TYPE_UINT32, (service != NULL ? 1 : 0), 0)); - _DBUS_HANDLE_OOM (dbus_connection_send_message (connection, message, NULL, NULL)); - - dbus_message_unref (message); + _DBUS_HANDLE_OOM (dbus_connection_send_message (connection, reply, NULL, NULL)); + dbus_message_unref (reply); dbus_free (name); }