diff libpurple/buddyicon.c @ 16603:f130f097e378

19:00:43 Ka-Hing Cheung (khc): rlaager: shouldn't we give g_free as the key free function for icon_data_cache? 19:01:12 Ka-Hing Cheung (khc): valgrind is complaining that we are leaking the keys
author Richard Laager <rlaager@wiktel.com>
date Sun, 29 Apr 2007 00:09:27 +0000
parents 63a1de71e389
children 7135dd81991c dbd0a01a9a81
line wrap: on
line diff
--- a/libpurple/buddyicon.c	Sun Apr 29 00:09:42 2007 +0000
+++ b/libpurple/buddyicon.c	Sun Apr 29 00:09:27 2007 +0000
@@ -1124,7 +1124,8 @@
 		g_direct_hash, g_direct_equal,
 		NULL, (GFreeFunc)g_hash_table_destroy);
 
-	icon_data_cache = g_hash_table_new(g_str_hash, g_str_equal);
+	icon_data_cache = g_hash_table_new_full(g_str_hash, g_str_equal,
+	                                        g_free, NULL);
 	icon_file_cache = g_hash_table_new_full(g_str_hash, g_str_equal,
 	                                        g_free, NULL);
 	pointer_icon_cache = g_hash_table_new(g_direct_hash, g_direct_equal);