From 948174d1c654ba2b4729de6e5de094419ac272a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Bend=C3=ADk?= Date: Sat, 8 Apr 2023 07:01:25 +0200 Subject: [PATCH] Clear sigfuncs array using cptr_array_wipe --- common/signal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/signal.h b/common/signal.h index fd2d413cf..06ed094ba 100644 --- a/common/signal.h +++ b/common/signal.h @@ -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); }