From 0bf3861da5ad7f4f2310029e2b42ae964a9e3aa5 Mon Sep 17 00:00:00 2001 From: Claudio Takahasi Date: Thu, 21 Jun 2007 22:06:33 +0000 Subject: input: removed session_data structure and added watch for Disconnect signal --- input/manager.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'input/manager.c') 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) -- cgit