equal
deleted
inserted
replaced
96 void caps_add(const char *hash) |
96 void caps_add(const char *hash) |
97 { |
97 { |
98 if (!hash) |
98 if (!hash) |
99 return; |
99 return; |
100 caps *c = g_new0(caps, 1); |
100 caps *c = g_new0(caps, 1); |
101 c->features = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, g_free); |
101 c->features = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, NULL); |
102 c->identities = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, identity_destroy); |
102 c->identities = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, identity_destroy); |
103 c->forms = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, form_destroy); |
103 c->forms = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, form_destroy); |
104 g_hash_table_replace(caps_cache, g_strdup(hash), c); |
104 g_hash_table_replace(caps_cache, g_strdup(hash), c); |
105 } |
105 } |
106 |
106 |