From 546f51e4a3286df671c6bf8a5742b7ccc969c86f Mon Sep 17 00:00:00 2001 From: David Herrmann Date: Sat, 31 Dec 2011 12:44:10 +0100 Subject: [PATCH] input: do not take reference of parent input object This is currently broken, anyway as we do not unref the object. However, if we take a reference, then kmscon_input_unref() would never destroy the object as there are still references. The caller would have to call kmscon_input_sleep() first to have the desired effect. Signed-off-by: David Herrmann --- src/input.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/input.c b/src/input.c index 31c0938..3086b51 100644 --- a/src/input.c +++ b/src/input.c @@ -180,7 +180,6 @@ static int kmscon_input_device_new(struct kmscon_input_device **out, return -ENOMEM; } - kmscon_input_ref(input); device->input = input; device->rfd = -1;