From: <aar...@us...> - 2006-07-19 06:47:32
|
Revision: 16519 Author: aaronsheldon Date: 2006-07-18 23:47:26 -0700 (Tue, 18 Jul 2006) ViewCVS: http://svn.sourceforge.net/gaim/?rev=16519&view=rev Log Message: ----------- Fixes potential segfaults, especially with completely empty buddy lists. Modified Paths: -------------- branches/soc-2006-blist-efficiency/src/gtkblist.c Modified: branches/soc-2006-blist-efficiency/src/gtkblist.c =================================================================== --- branches/soc-2006-blist-efficiency/src/gtkblist.c 2006-07-18 07:18:23 UTC (rev 16518) +++ branches/soc-2006-blist-efficiency/src/gtkblist.c 2006-07-19 06:47:26 UTC (rev 16519) @@ -4008,8 +4008,11 @@ node = gaim_blist_node_next(node, FALSE); } - g_hash_table_destroy(status_icon_hash_table); - status_icon_hash_table = NULL; + /* There is no hash table if there is nothing in the buddy list to update */ + if (status_icon_hash_table) { + g_hash_table_destroy(status_icon_hash_table); + status_icon_hash_table = NULL; + } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |