Fix a use after free that scanbuild detected

Review Request #701 — Created June 2, 2021 and submitted — Latest diff uploaded

Information

pidgin/pidgin
release-2.x.y
287bd3635173

Reviewers

Fix a use after free that scanbuild detected

Verified that scanbuild no longer detects the error.