diff options
author | Andrew Potter <agpotter@gmail.com> | 2014-08-10 15:06:46 -0700 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2014-08-11 22:51:20 +0200 |
commit | 62d891aea9c2ea105a21be7834dbbb96b7680083 (patch) | |
tree | 3d839632b15c2f59a15af23b7a1c195157970576 /doc | |
parent | 4faa227a2d180762cf93c70a3e8bf3721baf3456 (diff) | |
download | weechat-62d891aea9c2ea105a21be7834dbbb96b7680083.zip |
core: callback_free_key shouldn't point to already free'd value
Diffstat (limited to 'doc')
-rw-r--r-- | doc/en/weechat_plugin_api.en.asciidoc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/en/weechat_plugin_api.en.asciidoc b/doc/en/weechat_plugin_api.en.asciidoc index 4f9c75a8a..9bc9584d3 100644 --- a/doc/en/weechat_plugin_api.en.asciidoc +++ b/doc/en/weechat_plugin_api.en.asciidoc @@ -3812,7 +3812,14 @@ my_free_value_cb (struct t_hashtable *hashtable, const void *key, void *value) /* ... */ } +void +my_free_key_cb (struct t_hashtable *hashtable, void *key) +{ + /* ... */ +} + weechat_hashtable_set_pointer (hashtable, "callback_free_value", &my_free_value_cb); +weechat_hashtable_set_pointer (hashtable, "callback_free_key", &my_free_key_cb); ---- [NOTE] |