Mercurial > pidgin
comparison src/blist.c @ 7429:58a426e1bd1a
[gaim-migrate @ 8033]
plug a memleak, and fix a segfault
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Wed, 05 Nov 2003 00:11:31 +0000 |
parents | 53c86d59f20b |
children | 783eea64614c |
comparison
equal
deleted
inserted
replaced
7428:ab1ddb5c1216 | 7429:58a426e1bd1a |
---|---|
1226 return NULL; | 1226 return NULL; |
1227 | 1227 |
1228 if (!name) | 1228 if (!name) |
1229 return NULL; | 1229 return NULL; |
1230 | 1230 |
1231 hb.account = account; | |
1231 hb.name = g_strdup(gaim_normalize(account, name)); | 1232 hb.name = g_strdup(gaim_normalize(account, name)); |
1232 hb.account = account; | 1233 |
1234 if(!hb.name) | |
1235 return NULL; | |
1233 | 1236 |
1234 for(group = gaimbuddylist->root; group; group = group->next) { | 1237 for(group = gaimbuddylist->root; group; group = group->next) { |
1235 hb.group = group; | 1238 hb.group = group; |
1236 if ((buddy = g_hash_table_lookup(gaimbuddylist->buddies, &hb))) { | 1239 if ((buddy = g_hash_table_lookup(gaimbuddylist->buddies, &hb))) { |
1237 g_free(hb.name); | 1240 g_free(hb.name); |