comparison src/blist.c @ 5388:5d0df915ca09

[gaim-migrate @ 5764] This patch is Sofar's (Auke Kok) napster update warmenhovinated by me. So... the Napster PRPL works with Opennap servers now. Thanks Auke. There are a few places that still need a bit of work. Namely joining and parting chats. I don't have time to look at it right now, but search for XXX and // and you'll see the stuff that is relevant to it, if anyone wants to fix the memleak or two. For any potential Gaim hackers out there, a few notes: -Put all declarations at the top of a block--we're not all using C99 -Please don't use // comments, use /* */ (// is for C) -Try to use dynamic buffers rather than static buffers in most places. I think most of us Gaim people perfer dynamic rather than static. I wish oscar.c was this short. Or this clean. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Thu, 15 May 2003 21:43:42 +0000
parents c4e7a079cc04
children 93661ac6224f
comparison
equal deleted inserted replaced
5387:1133ab0a26a2 5388:5d0df915ca09
616 616
617 hb.name = normalize(buddy->name); 617 hb.name = normalize(buddy->name);
618 hb.account = buddy->account; 618 hb.account = buddy->account;
619 if (g_hash_table_lookup_extended(gaimbuddylist->buddies, &hb, (gpointer *)&key, (gpointer *)&val)) { 619 if (g_hash_table_lookup_extended(gaimbuddylist->buddies, &hb, (gpointer *)&key, (gpointer *)&val)) {
620 g_hash_table_remove(gaimbuddylist->buddies, &hb); 620 g_hash_table_remove(gaimbuddylist->buddies, &hb);
621 /* XXX - Is hb freed anywhere? */
621 g_free(key->name); 622 g_free(key->name);
622 g_free(key); 623 g_free(key);
623 } 624 }
624 625
625 if(buddy->timer > 0) 626 if(buddy->timer > 0)