changeset 23432:74960bf43dae

let's not leak if nothing is changed
author Ka-Hing Cheung <khc@hxbc.us>
date Sun, 06 Jul 2008 17:24:35 +0000
parents 146d16459cda
children 7139ce8a6ece 3f80020106e6
files libpurple/protocols/jabber/presence.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/jabber/presence.c	Sun Jul 06 17:19:27 2008 +0000
+++ b/libpurple/protocols/jabber/presence.c	Sun Jul 06 17:24:35 2008 +0000
@@ -178,9 +178,9 @@
 		js->old_avatarhash = g_strdup(js->avatar_hash);
 		js->old_state = state;
 		js->old_priority = priority;
-		g_free(stripped);
 	}
-					  	
+	g_free(stripped);
+
 	/* next, check if there are any changes to the tune values */
 	tune = purple_presence_get_status(p, "tune");
 	if (tune && purple_status_is_active(tune)) {