summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2007-02-23 18:26:47 +0000
committerClaudio Takahasi <claudio.takahasi@openbossa.org>2007-02-23 18:26:47 +0000
commite977c52ef242556e3af44bec99c64bac91cc0b11 (patch)
tree21d3e0b2e2f11f4911554630ffab28917e9c610f
parent2957490728208811926b2d548ef77432564fc916 (diff)
Fake input: missing input device fake struct free
-rw-r--r--input/device.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/input/device.c b/input/device.c
index 495886bd..20c2a1d0 100644
--- a/input/device.c
+++ b/input/device.c
@@ -124,6 +124,8 @@ static void input_device_free(struct input_device *idev)
return;
if (idev->hidp.rd_data)
free(idev->hidp.rd_data);
+ if (idev->fake)
+ free(idev->fake);
free(idev);
}
@@ -1312,6 +1314,8 @@ static void headset_record_reply(DBusPendingCall *call, void *data)
memset(idev->fake, 0, sizeof(struct fake_input));
idev->fake->ch = ch;
+ /* FIXME: Store the fake input data */
+
path = create_input_path(idev->major, idev->minor);
if (register_input_device(pr->conn, idev, path) < 0) {
error("D-Bus path registration failed:%s", path);