From 979a63d2424e5a04c1a45bbb94d10904b605c409 Mon Sep 17 00:00:00 2001 From: QC Date: Mon, 27 Jul 2015 23:24:38 +0200 Subject: Fix not clearing of pointer after free-ing it. --- source/keyb.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source/keyb.c') diff --git a/source/keyb.c b/source/keyb.c index ea140f4b..c8afc59e 100644 --- a/source/keyb.c +++ b/source/keyb.c @@ -262,6 +262,7 @@ void parse_keys_abe ( void ) char *sp = NULL; g_free ( abe[iter].kb ); + abe[iter].kb = NULL; abe[iter].num_bindings = 0; // Iter over bindings. -- cgit v1.2.3