Mercurial > pidgin
comparison 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 |
comparison
equal
deleted
inserted
replaced
16602:60aae7ef3b7e | 16603:f130f097e378 |
---|---|
1122 { | 1122 { |
1123 account_cache = g_hash_table_new_full( | 1123 account_cache = g_hash_table_new_full( |
1124 g_direct_hash, g_direct_equal, | 1124 g_direct_hash, g_direct_equal, |
1125 NULL, (GFreeFunc)g_hash_table_destroy); | 1125 NULL, (GFreeFunc)g_hash_table_destroy); |
1126 | 1126 |
1127 icon_data_cache = g_hash_table_new(g_str_hash, g_str_equal); | 1127 icon_data_cache = g_hash_table_new_full(g_str_hash, g_str_equal, |
1128 g_free, NULL); | |
1128 icon_file_cache = g_hash_table_new_full(g_str_hash, g_str_equal, | 1129 icon_file_cache = g_hash_table_new_full(g_str_hash, g_str_equal, |
1129 g_free, NULL); | 1130 g_free, NULL); |
1130 pointer_icon_cache = g_hash_table_new(g_direct_hash, g_direct_equal); | 1131 pointer_icon_cache = g_hash_table_new(g_direct_hash, g_direct_equal); |
1131 | 1132 |
1132 cache_dir = g_build_filename(purple_user_dir(), "icons", NULL); | 1133 cache_dir = g_build_filename(purple_user_dir(), "icons", NULL); |