/pidgin/main: f0c5f4056c51: Fix minor assertion.

Elliott Sales de Andrade qulogic at pidgin.im
Tue Nov 18 22:35:06 EST 2014


Changeset: f0c5f4056c511674b97b71cf36704ce6fd4792e9
Author:	 Elliott Sales de Andrade <qulogic at pidgin.im>
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);
 }



More information about the Commits mailing list