pidgin/pidgin

Fix some errors that scanbuild found
release-2.x.y
2021-06-03, Gary Kramlich
a4a68d315090
Fix some errors that scanbuild found

Testing Done:
Verified that scanbuild no longer detects the errors.

Reviewed at https://reviews.imfreedom.org/r/718/
How to build Pidgin for Windows using MinGW
===========================================
For the latest build instructions, please refer to:
http://developer.pidgin.im/wiki/BuildingWinPidgin