mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
add memleak fix from commit ccbb1f15
This commit is contained in:
parent
0671d579b7
commit
6a2c8bf962
2
conf.c
2
conf.c
@ -560,6 +560,8 @@ conf_unbind(struct conf *c, struct keybinding *unbind)
|
|||||||
key->keysym == unbind->keysym) {
|
key->keysym == unbind->keysym) {
|
||||||
conf_ungrab(c, key);
|
conf_ungrab(c, key);
|
||||||
TAILQ_REMOVE(&c->keybindingq, key, entry);
|
TAILQ_REMOVE(&c->keybindingq, key, entry);
|
||||||
|
if (key->argtype & ARG_CHAR)
|
||||||
|
free(key->argument.c);
|
||||||
free(key);
|
free(key);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user