Fix a use after free scanbuild found in buddyicon.c

Review Request #698 — Created June 1, 2021 and submitted — Latest diff uploaded

Information

pidgin/pidgin
release-2.x.y
78a5dac16b37

Reviewers

Fix a use after free scanbuild found in buddyicon.c

Verified scanbuild no longer detected the error.