mirror of
https://github.com/0intro/wmii
synced 2025-03-28 17:42:51 +03:00
bugfix of the destroy_key bug
This commit is contained in:
parent
0cb93c498a
commit
43edcfc10f
@ -138,11 +138,14 @@ get_key(const char *name)
|
||||
void
|
||||
destroy_key(Key *k)
|
||||
{
|
||||
Key *n;
|
||||
cext_array_detach((void **)key, k, &keysz);
|
||||
nkey--;
|
||||
if(k->next)
|
||||
destroy_key(k->next);
|
||||
free(k);
|
||||
while(k) {
|
||||
n = k->next;
|
||||
free(k);
|
||||
k = n;
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
x
Reference in New Issue
Block a user