`utils_free_pointers()` has a clear name, but requires a leading count of pointers, which could be too big or too small, and a trailing NULL, to try to detect if the count is too big.
I realized now we require C99, we can solve all these issues with a macro: ```c #define FREE_EACH(...) do { \ void *_arr[] = {__VA_ARGS__}; \ for (guint _i = 0; _i < G_N_ELEMENTS(_arr); _i++) \ g_free(_arr[_i]); \ } while (0) ``` Shall I make a PR?
I vote to just replace all uses of `utils_free_pointers()` with individual calls to `g_free` for the same reasons as for macros in #2281.
github-comments@lists.geany.org