/pidgin/main: f0c5f4056c51: Fix minor assertion.

Elliott Sales de Andrade <[email protected]>
Newsgroups gmane.comp.gnome.gaim.cvs
Message-ID <[email protected]>
Changeset: f0c5f4056c511674b97b71cf36704ce6fd4792e9
Author:	 Elliott Sales de Andrade <[email protected]>
Date:	 2014-11-15 19:43 -0500
Branch:	 release-2.x.y
URL: https://hg.pidgin.im/pidgin/main/rev/f0c5f4056c51

Description:

Fix minor assertion.

The body of a SOAP callback may not exist yet if it's prematurely freed.

diffstat:

 libpurple/protocols/msn/contact.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff --git a/libpurple/protocols/msn/contact.c b/libpurple/protocols/msn/contact.c
--- a/libpurple/protocols/msn/contact.c
+++ b/libpurple/protocols/msn/contact.c
@@ -96,7 +96,8 @@ msn_callback_state_free(MsnCallbackState
 	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);
 }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.