Clear sigfuncs array using cptr_array_wipe
This commit is contained in:
parent
b3f50d3e14
commit
948174d1c6
|
@ -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 New Issue