changeset 20782:848970b040a5

Fix small leak.
author Daniel Atallah <daniel.atallah@gmail.com>
date Fri, 05 Oct 2007 03:52:44 +0000
parents 2216c520f4bd
children ee8016f8208e
files libpurple/protocols/jabber/google.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/jabber/google.c	Thu Oct 04 18:14:10 2007 +0000
+++ b/libpurple/protocols/jabber/google.c	Fri Oct 05 03:52:44 2007 +0000
@@ -231,7 +231,7 @@
 	const char *jid = xmlnode_get_attrib(item, "jid");
 	gboolean on_block_list = FALSE;
 
-	char *jid_norm = g_strdup(jabber_normalize(account, jid));
+	char *jid_norm;
 
 	const char *grt = xmlnode_get_attrib_with_namespace(item, "t", "google:roster");
 	const char *subscription = xmlnode_get_attrib(item, "subscription");
@@ -243,6 +243,8 @@
 		return FALSE;
 	}
 
+ 	jid_norm = g_strdup(jabber_normalize(account, jid));
+
 	while (list) {
 		if (!strcmp(jid_norm, (char*)list->data)) {
 			on_block_list = TRUE;