Clear sigfuncs array using cptr_array_wipe

This commit is contained in:
Miroslav Bendík 2023-04-08 07:01:25 +02:00
parent b3f50d3e14
commit 948174d1c6
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ signal_disconnect(signal_array_t *arr, const char *name, const void *ref)
cptr_array_remove(&sigfound->sigfuncs, func);
if(sigfound->sigfuncs.len == 0) {
if(sigfound->sigfuncs.tab) {
p_delete(&sigfound->sigfuncs.tab);
cptr_array_wipe(&sigfound->sigfuncs);
}
signal_array_remove(arr, sigfound);
}