diff options
author | QC <qball@gmpclient.org> | 2015-07-27 23:24:38 +0200 |
---|---|---|
committer | QC <qball@gmpclient.org> | 2015-07-27 23:24:38 +0200 |
commit | 979a63d2424e5a04c1a45bbb94d10904b605c409 (patch) | |
tree | 8c83cb155b53c8bf5070a43a86ab4dd36ff1ae9b | |
parent | 70f4f3d119e85855902009e606f60caa5229997d (diff) |
Fix not clearing of pointer after free-ing it.
-rw-r--r-- | source/dialogs/dmenu.c | 3 | ||||
-rw-r--r-- | source/keyb.c | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/source/dialogs/dmenu.c b/source/dialogs/dmenu.c index a3de01b4..2d3cb877 100644 --- a/source/dialogs/dmenu.c +++ b/source/dialogs/dmenu.c @@ -256,7 +256,8 @@ int dmenu_switcher_dialog ( char **input ) retv = 10 + ( mretv & MENU_LOWER_MASK ); } return retv; - } else if ( (mretv&MENU_CANCEL)== MENU_CANCEL) { + } + else if ( ( mretv & MENU_CANCEL ) == MENU_CANCEL ) { // In no custom mode we allow canceling. restart = ( find_arg ( "-only-match" ) >= 0 ); } 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. |