---

 gdbus/object.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/gdbus/object.c b/gdbus/object.c
index 3327cf4..01b5511 100644
--- a/gdbus/object.c
+++ b/gdbus/object.c
@@ -1496,7 +1496,7 @@ DBusMessage *g_dbus_create_reply(DBusMessage *message, 
int type, ...)
 
 gboolean g_dbus_send_message(DBusConnection *connection, DBusMessage *message)
 {
-       dbus_bool_t result;
+       dbus_bool_t result = FALSE;
 
        if (dbus_message_get_type(message) == DBUS_MESSAGE_TYPE_METHOD_CALL)
                dbus_message_set_no_reply(message, TRUE);
@@ -1507,11 +1507,11 @@ gboolean g_dbus_send_message(DBusConnection 
*connection, DBusMessage *message)
                const GDBusArgInfo *args;
 
                if (!check_signal(connection, path, interface, name, &args))
-                       return FALSE;
+                       goto out;
        }
 
        result = dbus_connection_send(connection, message, NULL);
-
+out:
        dbus_message_unref(message);
 
        return result;
-- 
1.8.1.1

_______________________________________________
connman mailing list
connman@connman.net
http://lists.connman.net/listinfo/connman

Reply via email to