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:
@@ -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
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user