From dd3c9dd83877eca308c1398705b35dd97e577222 Mon Sep 17 00:00:00 2001 From: Tatsuya79 Date: Wed, 16 May 2018 13:30:57 +0200 Subject: [PATCH] call input_remapping_set_defaults before loading a new remap --- input/input_remapping.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/input/input_remapping.c b/input/input_remapping.c index 32e9875168..bd43985eb1 100644 --- a/input/input_remapping.c +++ b/input/input_remapping.c @@ -48,7 +48,7 @@ bool input_remapping_load_file(void *data, const char *path) return false; if (!string_is_empty(global->name.remapfile)) - free(global->name.remapfile); + input_remapping_set_defaults(true); global->name.remapfile = strdup(path); for (i = 0; i < MAX_USERS; i++)