Use g_clear_* helpers where useful
Review Request #2369 — Created March 21, 2023 and submitted
- when the variable is set to
NULLright after freeing
- when the variable is checked for non-
- when the variable is a global (because they should be set to
NULL, even if we don't really claim that things can be re-init'd)
Compiled, and ran tests in valgrind.