changeset 17867:b748e602c951

fixed a bug in the status change tracking code
author Andreas Monitzer <pidgin@monitzer.com>
date Mon, 18 Jun 2007 12:48:16 +0000
parents 759cd72bd2ff
children 6820304c215f
files libpurple/protocols/jabber/presence.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/jabber/presence.c	Mon Jun 18 12:37:29 2007 +0000
+++ b/libpurple/protocols/jabber/presence.c	Mon Jun 18 12:48:16 2007 +0000
@@ -127,7 +127,6 @@
 	if (js->old_state != state || CHANGED(js->old_msg, stripped) ||
 		js->old_priority != priority || CHANGED(js->old_avatarhash, js->avatar_hash)) {
 		presence = jabber_presence_create_js(js, state, stripped, priority);
-		g_free(stripped);
 
 		if(js->avatar_hash) {
 			x = xmlnode_new_child(presence, "x");
@@ -151,6 +150,7 @@
 		js->old_avatarhash = g_strdup(js->avatar_hash);
 		js->old_state = state;
 		js->old_priority = priority;
+		g_free(stripped);
 	}
 	
 	/* next, check if there are any changes to the tune values */