changeset 16611: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 60aae7ef3b7e
children 4840fb3c110f
files libpurple/buddyicon.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
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);