diff options
author | Jamey Sharp <jamey@minilop.net> | 2011-09-26 22:38:44 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-10-03 11:51:00 -0700 |
commit | 77743f877d573cdf70fcb5cb5897250f668ebf9b (patch) | |
tree | 15d5c08a6051dd990c30d05e0f3979b472fad38b /hw/kdrive | |
parent | 9a55b3661b4172f9a32cd6fefb254e06edb1a88a (diff) |
kdrive: Fix build for opaque InputOption structure.
Commit 05284a03f9002b03a66ae355b34790ec02b726f0 missed fixing up
kdrive's use of the old non-opaque structure.
Signed-off-by: Jamey Sharp <jamey@minilop.net>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'hw/kdrive')
-rw-r--r-- | hw/kdrive/src/kinfo.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/hw/kdrive/src/kinfo.c b/hw/kdrive/src/kinfo.c index 7055fbf4a..0055b16db 100644 --- a/hw/kdrive/src/kinfo.c +++ b/hw/kdrive/src/kinfo.c @@ -134,19 +134,9 @@ KdNewPointer (void) void KdFreePointer(KdPointerInfo *pi) { - InputOption *option, *prev = NULL; - free(pi->name); free(pi->path); - - for (option = pi->options; option; option = option->next) { - free(prev); - free(option->key); - free(option->value); - prev = option; - } - - free(prev); + input_option_free_list(&pi->options); free(pi); } |