mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-16 07:47:22 +01:00
Clear sigfuncs array using cptr_array_wipe
This commit is contained in:
parent
b3f50d3e14
commit
948174d1c6
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@ signal_disconnect(signal_array_t *arr, const char *name, const void *ref)
|
||||||
cptr_array_remove(&sigfound->sigfuncs, func);
|
cptr_array_remove(&sigfound->sigfuncs, func);
|
||||||
if(sigfound->sigfuncs.len == 0) {
|
if(sigfound->sigfuncs.len == 0) {
|
||||||
if(sigfound->sigfuncs.tab) {
|
if(sigfound->sigfuncs.tab) {
|
||||||
p_delete(&sigfound->sigfuncs.tab);
|
cptr_array_wipe(&sigfound->sigfuncs);
|
||||||
}
|
}
|
||||||
signal_array_remove(arr, sigfound);
|
signal_array_remove(arr, sigfound);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue