diff options
Diffstat (limited to 'input')
-rw-r--r-- | input/device.c | 4 |
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); |