Diff between e5b216061bdd60adc95431e593bb4c36f99beda8 and ee9c08452c5cf724b0e50158f2394510bfd3a145
Changed Files
| File | Additions | Deletions | Status |
| plugins/neard.c | +3 | -0 | modified |
Full Patch
diff --git a/plugins/neard.c b/plugins/neard.c
index a68500a..b0150e9 100644
--- a/plugins/neard.c
+++ b/plugins/neard.c
@@ -121,12 +121,15 @@ static void register_agent(void)
if (!dbus_connection_send_with_reply(btd_get_dbus_connection(),
message, &call, -1)) {
+ dbus_message_unref(message);
error("D-Bus send failed");
return;
}
dbus_pending_call_set_notify(call, register_agent_cb, NULL, NULL);
dbus_pending_call_unref(call);
+
+ dbus_message_unref(message);
}
static void unregister_agent(void)