1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-04 00:33:13 +02:00

core: set "callback_free_value" directly in hashtable without calling function hashtable_set_pointer

This commit is contained in:
Sebastien Helleu
2013-08-09 22:54:06 +02:00
parent d466a86efc
commit 72c1af25e0
2 changed files with 2 additions and 6 deletions
+1 -3
View File
@@ -105,9 +105,7 @@ hdata_new (struct t_weechat_plugin *plugin, const char *hdata_name,
WEECHAT_HASHTABLE_POINTER,
NULL,
NULL);
hashtable_set_pointer (new_hdata->hash_var,
"callback_free_value",
&hdata_free_var);
new_hdata->hash_var->callback_free_value = &hdata_free_var;
new_hdata->hash_list = hashtable_new (32,
WEECHAT_HASHTABLE_STRING,
WEECHAT_HASHTABLE_POINTER,
+1 -3
View File
@@ -632,9 +632,7 @@ gui_color_palette_alloc_structs ()
WEECHAT_HASHTABLE_POINTER,
NULL,
NULL);
hashtable_set_pointer (gui_color_hash_palette_color,
"callback_free_value",
&gui_color_palette_free_value_cb);
gui_color_hash_palette_color->callback_free_value = &gui_color_palette_free_value_cb;
}
if (!gui_color_hash_palette_alias)
{