diff options
author | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2007-06-21 22:06:33 +0000 |
---|---|---|
committer | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2007-06-21 22:06:33 +0000 |
commit | 0bf3861da5ad7f4f2310029e2b42ae964a9e3aa5 (patch) | |
tree | 1e60662755451e4812798a0601763b5887d728ef /input/manager.c | |
parent | 5fcad6abebf97c6a06d9eb5c206d5c10bcf14eb7 (diff) |
input: removed session_data structure and added watch for Disconnect signal
Diffstat (limited to 'input/manager.c')
-rw-r--r-- | input/manager.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/input/manager.c b/input/manager.c index bd87c5fb..03c914ee 100644 --- a/input/manager.c +++ b/input/manager.c @@ -954,9 +954,12 @@ static void stored_input(char *key, char *value, void *data) * acceptable since the source is different. */ if (input_device_register(connection, src, &dst, &hidp, &path) < 0) - return; + goto cleanup; device_paths = g_slist_append(device_paths, g_strdup(path)); +cleanup: + if (hidp.rd_data) + g_free(hidp.rd_data); } static void register_stored_inputs(void) |