OSDN Git Service
(root)
/
android-x86
/
external-bluetooth-bluez.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b110c73
)
Fix input pending connect handling
author
Chan-yeol Park
<chanyeol.park@samsung.com>
Mon, 17 Oct 2011 12:07:37 +0000
(21:07 +0900)
committer
Johan Hedberg
<johan.hedberg@intel.com>
Mon, 17 Oct 2011 13:33:47 +0000
(16:33 +0300)
iconn->pending_connect needs to be freed after sending the error reply
input/device.c
patch
|
blob
|
history
diff --git
a/input/device.c
b/input/device.c
index
9ff7f20
..
16eb155
100644
(file)
--- a/
input/device.c
+++ b/
input/device.c
@@
-825,6
+825,9
@@
failed:
reply = btd_error_failed(iconn->pending_connect, err_msg);
g_dbus_send_message(idev->conn, reply);
+ dbus_message_unref(iconn->pending_connect);
+ iconn->pending_connect = NULL;
+
/* So we guarantee the interrupt channel is closed before the
* control channel (if we only do unref GLib will close it only
* after returning control to the mainloop */