diff libpurple/protocols/jabber/presence.c @ 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 39841a84c944 e23b447aa5ca ba362a67278c e9b7e41dc816
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)) {