Use g_clear_* helpers where useful

Review Request #2369 — Created March 21, 2023 and submitted

Information

pidgin/pidgin
default

Reviewers

That is:

  • when the variable is set to NULL right after freeing
  • when the variable is checked for non-NULL before freeing
  • 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.

Summary ID
Use g_clear_* helpers where useful
That is: * when the variable is set to `NULL` right after * when the variable is checked for non-`NULL` before freeing * when the variable is a global
a542968a4cb5380f209a1daa9a839a07da8230c3
grim
  1. Ship It!
  2. Great work! Thank you so very much!!

  3. 
      
grim
Review request changed
Status:
Completed