changeset 27572:e3c2c3e72d7a

Remove a now-superfluous g_strdup/g_free. None of the hash table functions use purple_normalize, this should be OK.
author Paul Aurich <paul@darkrain42.org>
date Sun, 07 Jun 2009 06:12:22 +0000
parents c8390dc125c1
children 9a5a9a4e7626
files libpurple/blist.c
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/blist.c	Sun Jun 07 05:36:45 2009 +0000
+++ b/libpurple/blist.c	Sun Jun 07 06:12:22 2009 +0000
@@ -2354,16 +2354,14 @@
 	g_return_val_if_fail((name != NULL) && (*name != '\0'), NULL);
 
 	hb.account = account;
-	hb.name = g_strdup(purple_normalize(account, name));
+	hb.name = purple_normalize(account, name);
 
 	for (group = purplebuddylist->root; group; group = group->next) {
 		hb.group = group;
 		if ((buddy = g_hash_table_lookup(purplebuddylist->buddies, &hb))) {
-			g_free(hb.name);
 			return buddy;
 		}
 	}
-	g_free(hb.name);
 
 	return NULL;
 }