Fix not clearing of pointer after free-ing it.

This commit is contained in:
QC 2015-07-27 23:24:38 +02:00
parent 70f4f3d119
commit 979a63d242
2 changed files with 3 additions and 1 deletions

View file

@ -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 );
}

View file

@ -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.