various bugfixes
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* $calcurse: keys.c,v 1.12 2009/01/01 17:50:41 culot Exp $ */
|
||||
/* $calcurse: keys.c,v 1.13 2009/01/02 19:52:32 culot Exp $ */
|
||||
|
||||
/*
|
||||
* Calcurse - text-based organizer
|
||||
@@ -141,12 +141,12 @@ keys_free (void)
|
||||
continue;
|
||||
|
||||
i = &keys[key];
|
||||
for (o = keys[key]; o; o = o->next)
|
||||
while (*i)
|
||||
{
|
||||
o = *i;
|
||||
*i = o->next;
|
||||
mem_free (o->str);
|
||||
mem_free (o);
|
||||
i = &o->next;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user