comparison src/blist.c @ 10504:1a97d5e88d12

[gaim-migrate @ 11796] Lots of things here: - Several memory leak fixes - A few invalid memory access fixes - Fix a yahoo crash going idle when away - Fix Add user in chats to actually fill in the screenname - Add gaim_account_{get,set}_enabled to perl - Fix command priorities (fixes /me in IRC) - Fix MSN notification server transfer to be quiet about it - Fix MSN blist sync if user has insane friendly name - Make the docklet less crash-happy if it fails to embed in 3 seconds - Only probe for native plugins with the correct file extension - 1 typo fix :) ... and quite possibly something else I forgot. committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Tue, 11 Jan 2005 17:25:06 +0000
parents 94fd0bf8c4b1
children 1596ade00664
comparison
equal deleted inserted replaced
10503:776586d647e3 10504:1a97d5e88d12
1684 /* Update the UI */ 1684 /* Update the UI */
1685 if (ops && ops->remove) 1685 if (ops && ops->remove)
1686 ops->remove(gaimbuddylist, node); 1686 ops->remove(gaimbuddylist, node);
1687 1687
1688 /* Delete the node */ 1688 /* Delete the node */
1689 g_hash_table_destroy(contact->node.settings);
1689 g_free(contact); 1690 g_free(contact);
1690 } 1691 }
1691 } 1692 }
1692 1693
1693 void gaim_blist_remove_buddy(GaimBuddy *buddy) 1694 void gaim_blist_remove_buddy(GaimBuddy *buddy)
1755 g_hash_table_destroy(buddy->node.settings); 1756 g_hash_table_destroy(buddy->node.settings);
1756 gaim_presence_remove_buddy(buddy->presence, buddy); 1757 gaim_presence_remove_buddy(buddy->presence, buddy);
1757 gaim_presence_destroy(buddy->presence); 1758 gaim_presence_destroy(buddy->presence);
1758 g_free(buddy->name); 1759 g_free(buddy->name);
1759 g_free(buddy->alias); 1760 g_free(buddy->alias);
1761 g_free(buddy->server_alias);
1760 g_free(buddy); 1762 g_free(buddy);
1761 1763
1762 /* If the contact is empty then remove it */ 1764 /* If the contact is empty then remove it */
1763 if (!cnode->child) 1765 if (!cnode->child)
1764 gaim_blist_remove_contact(contact); 1766 gaim_blist_remove_contact(contact);
1797 if (ops && ops->remove) 1799 if (ops && ops->remove)
1798 ops->remove(gaimbuddylist, node); 1800 ops->remove(gaimbuddylist, node);
1799 1801
1800 /* Delete the node */ 1802 /* Delete the node */
1801 g_hash_table_destroy(chat->components); 1803 g_hash_table_destroy(chat->components);
1804 g_hash_table_destroy(chat->node.settings);
1802 g_free(chat->alias); 1805 g_free(chat->alias);
1803 g_free(chat); 1806 g_free(chat);
1804 } 1807 }
1805 1808
1806 void gaim_blist_remove_group(GaimGroup *group) 1809 void gaim_blist_remove_group(GaimGroup *group)
1858 if (gaim_connection_get_state(gc) == GAIM_CONNECTED) 1861 if (gaim_connection_get_state(gc) == GAIM_CONNECTED)
1859 serv_remove_group(gc, group); 1862 serv_remove_group(gc, group);
1860 } 1863 }
1861 1864
1862 /* Delete the node */ 1865 /* Delete the node */
1866 g_hash_table_destroy(group->node.settings);
1863 g_free(group->name); 1867 g_free(group->name);
1864 g_free(group); 1868 g_free(group);
1865 } 1869 }
1866 1870
1867 GaimBuddy *gaim_contact_get_priority_buddy(GaimContact *contact) 1871 GaimBuddy *gaim_contact_get_priority_buddy(GaimContact *contact)