pidgin/pidgin

Use g_clear_* helpers where useful

14 months ago, Elliott Sales de Andrade
7c2d151b410d
Use g_clear_* helpers where useful

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)

Testing Done:
Compiled, and ran tests in valgrind.

Reviewed at https://reviews.imfreedom.org/r/2369/
---
name: talkatu
buildsystem: meson
config-opts:
- -Ddoc=false
- -Dtests=false
cleanup:
- /bin
- /include
- /lib/pkgconfig
- /share/man
sources:
- type: archive
url: https://keep.imfreedom.org/talkatu/talkatu/archive/8fc3991a77d0.tar.gz
sha256: cff53b8127613691ddd7bb87284ae2944977ab7a8cc2be85f0aee10b274d0fbe
modules:
- external/cmark.yml
- external/gspell-1.yml
- external/gumbo.yml