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/
[Desktop Entry]
Name=Pidgin
GenericName=Internet Messenger
Comment=Chat over IM. Supports Jabber/XMPP, and more
Exec=purple3-url-handler %u
TryExec=purple3-url-handler
Icon=pidgin
StartupNotify=false
Terminal=false
NoDisplay=true
Type=Application
Categories=Network;InstantMessaging;RemoteAccess;ConsoleOnly;
MimeType=x-scheme-handler/gg;x-scheme-handler/irc;x-scheme-handler/sip;x-scheme-handler/xmpp;
@USES_MM_CHAT_SECTION@