diff options
author | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2007-10-01 11:49:40 +0000 |
---|---|---|
committer | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2007-10-01 11:49:40 +0000 |
commit | 76a68c90d5d03c4e037ef00562e0fa907fdccf92 (patch) | |
tree | 3e7c1f54c740e9816bacde6e3da8d988569b4db5 | |
parent | 847dad179fe16ec395373e4b55d46dcd400c623a (diff) |
serial: fixed get_handles pending call leak
-rw-r--r-- | serial/manager.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/serial/manager.c b/serial/manager.c index 378434e4..ec06ac0e 100644 --- a/serial/manager.c +++ b/serial/manager.c @@ -614,6 +614,12 @@ static int get_record(struct pending_connect *pc, uint32_t handle, DBUS_TYPE_UINT32, &handle, DBUS_TYPE_INVALID); + /* Unref get_handles pending call */ + if (pc->pcall) { + dbus_pending_call_unref(pc->pcall); + pc->pcall = NULL; + } + if (!dbus_connection_send_with_reply(pc->conn, msg, &pc->pcall, -1)) { error("Can't send D-Bus message."); dbus_message_unref(msg); |