summaryrefslogtreecommitdiff
path: root/bindings.c
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2018-06-19 23:47:36 -0700
committerMichael Pavone <pavone@retrodev.com>2018-06-19 23:47:36 -0700
commitf4a4120b4f131ca1e68c3e5f354fb1ebce0e62f8 (patch)
treeda94ee22e6f084bf367b83c3d25362f96d253712 /bindings.c
parent98a8b31e5b715ee9cb820a4175f2fe9a5011daa1 (diff)
Fix missing include in bindings.c
Diffstat (limited to 'bindings.c')
-rw-r--r--bindings.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bindings.c b/bindings.c
index 4e89715..ca6f002 100644
--- a/bindings.c
+++ b/bindings.c
@@ -1,3 +1,4 @@
+#include <string.h>
#include "render.h"
#include "system.h"
#include "io.h"
@@ -971,6 +972,7 @@ void set_bindings(void)
tern_node * keys = tern_find_path(config, "bindings\0keys\0", TVAL_NODE).ptrval;
process_keys(keys, special, padbuttons, mousebuttons, NULL);
+ tern_free(special);
memset(mice, 0, sizeof(mice));
tern_node * mice = tern_find_path(config, "bindings\0mice\0", TVAL_NODE).ptrval;