From e977c52ef242556e3af44bec99c64bac91cc0b11 Mon Sep 17 00:00:00 2001 From: Claudio Takahasi Date: Fri, 23 Feb 2007 18:26:47 +0000 Subject: Fake input: missing input device fake struct free --- input/device.c | 4 ++++ 1 file changed, 4 insertions(+) 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); -- cgit