summaryrefslogtreecommitdiffstats
path: root/input/manager.c
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2007-04-17 20:40:45 +0000
committerClaudio Takahasi <claudio.takahasi@openbossa.org>2007-04-17 20:40:45 +0000
commit5e225e3d197b9a02617153ac570755cc4d13226b (patch)
treee428e1e62de704069ff1b3e8a3eb638530ffa171 /input/manager.c
parent4136e617c4f8ab7dfc3488708c8ba129910dc597 (diff)
input: dbus_pending_call_unref code standard
Diffstat (limited to 'input/manager.c')
-rw-r--r--input/manager.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/input/manager.c b/input/manager.c
index b7cfc117..41bafd20 100644
--- a/input/manager.c
+++ b/input/manager.c
@@ -143,6 +143,7 @@ static int get_record(struct pending_req *pr, uint32_t handle,
}
dbus_pending_call_set_notify(pending, cb, pr, NULL);
+ dbus_pending_call_unref(pending);
dbus_message_unref(msg);
return 0;
@@ -173,6 +174,7 @@ static int get_handles(struct pending_req *pr, const char *uuid,
}
dbus_pending_call_set_notify(pending, cb, pr, NULL);
+ dbus_pending_call_unref(pending);
dbus_message_unref(msg);
return 0;
@@ -431,14 +433,12 @@ static void hid_record_reply(DBusPendingCall *call, void *data)
}
dbus_message_unref(reply);
- dbus_pending_call_unref(call);
return;
fail:
dbus_error_free(&derr);
pending_req_free(pr);
dbus_message_unref(reply);
- dbus_pending_call_unref(call);
}
static void hid_handle_reply(DBusPendingCall *call, void *data)
@@ -491,7 +491,6 @@ fail:
done:
dbus_message_unref(reply);
- dbus_pending_call_unref(call);
}
static void pnp_record_reply(DBusPendingCall *call, void *data)
@@ -545,7 +544,6 @@ fail:
done:
dbus_message_unref(reply);
- dbus_pending_call_unref(call);
}
static void pnp_handle_reply(DBusPendingCall *call, void *data)
@@ -602,7 +600,6 @@ fail:
done:
dbus_message_unref(reply);
- dbus_pending_call_unref(call);
}
static void headset_record_reply(DBusPendingCall *call, void *data)
@@ -689,7 +686,6 @@ fail:
dbus_error_free(&derr);
pending_req_free(pr);
dbus_message_unref(reply);
- dbus_pending_call_unref(call);
}
static void headset_handle_reply(DBusPendingCall *call, void *data)
@@ -742,7 +738,6 @@ fail:
done:
dbus_message_unref(reply);
- dbus_pending_call_unref(call);
}
static int path_bdaddr_cmp(const char *path, const bdaddr_t *bdaddr)