comparison src/buddyicon.c @ 9327:ef8e4740254d

[gaim-migrate @ 10135] I think this is better. So updating the same GaimBuddyIcon doesn't accidently destroy it. committer: Tailor Script <tailor@pidgin.im>
author Tim Ringenbach <marv@pidgin.im>
date Sun, 20 Jun 2004 08:02:39 +0000
parents 59bca4e8678c
children 84594a281500
comparison
equal deleted inserted replaced
9326:5ca18080b6bd 9327:ef8e4740254d
65 65
66 g_hash_table_insert(icon_cache, 66 g_hash_table_insert(icon_cache,
67 (char *)gaim_buddy_icon_get_username(icon), icon); 67 (char *)gaim_buddy_icon_get_username(icon), icon);
68 } 68 }
69 69
70 gaim_buddy_icon_ref(icon);
70 gaim_buddy_icon_set_data(icon, icon_data, icon_len); 71 gaim_buddy_icon_set_data(icon, icon_data, icon_len);
71 72 gaim_buddy_icon_unref(icon);
72 /* We don't take a reference here. In fact we may want to check if we have 73
73 * a reference (gaim_buddy_icon_set_data should have added one or more) 74 /* We don't take a reference here. gaim_buddy_icon_set_data() makes blist.c or
74 * and destroy ourselves if we don't. 75 conversation.c, or both, do that for us.
75 */ 76 */
76 return icon; 77 return icon;
77 } 78 }
78 79
79 void 80 void