From 8e8a5ca217871e3b97c3aaa6779c2111142c9de8 Mon Sep 17 00:00:00 2001 From: Ian Fan Date: Wed, 19 Sep 2018 12:50:19 +0100 Subject: [PATCH] config: free strings fields when freeing input config --- sway/config/input.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sway/config/input.c b/sway/config/input.c index 9885e85c8..ad5b96c80 100644 --- a/sway/config/input.c +++ b/sway/config/input.c @@ -140,6 +140,13 @@ void free_input_config(struct input_config *ic) { return; } free(ic->identifier); + free(ic->xkb_layout); + free(ic->xkb_model); + free(ic->xkb_options); + free(ic->xkb_rules); + free(ic->xkb_variant); + free(ic->mapped_from_region); + free(ic->mapped_to_output); free(ic); }