pidgin/pidgin

Fix minor assertion.
release-2.x.y
2014-11-15, Elliott Sales de Andrade
f0c5f4056c51
Parents 26ad8040bdb4
Children 9afe309dc92a
Fix minor assertion.

The body of a SOAP callback may not exist yet if it's prematurely freed.
--- a/libpurple/protocols/msn/contact.c Tue Nov 18 22:34:21 2014 +0100
+++ b/libpurple/protocols/msn/contact.c Sat Nov 15 19:43:02 2014 -0500
@@ -96,7 +96,8 @@
g_free(state->old_group_name);
g_free(state->new_group_name);
g_free(state->guid);
- xmlnode_free(state->body);
+ if (state->body)
+ xmlnode_free(state->body);
g_free(state);
}