diff options
Diffstat (limited to 'plugins/neard.c')
-rwxr-xr-x | plugins/neard.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/neard.c b/plugins/neard.c index 1a0fc1cd..69586df6 100755 --- a/plugins/neard.c +++ b/plugins/neard.c @@ -534,10 +534,8 @@ static void register_agent(void) &path, DBUS_TYPE_STRING, &type, DBUS_TYPE_INVALID); if (!dbus_connection_send_with_reply(connection, message, - ®ister_call, TIMEOUT)) { - dbus_message_unref(message); + ®ister_call, TIMEOUT)) goto out; - } if (!dbus_pending_call_set_notify(register_call, register_agent_cb, NULL, NULL)) |