summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAndrew Potter <agpotter@gmail.com>2014-08-10 15:06:46 -0700
committerSébastien Helleu <flashcode@flashtux.org>2014-08-11 22:51:20 +0200
commit62d891aea9c2ea105a21be7834dbbb96b7680083 (patch)
tree3d839632b15c2f59a15af23b7a1c195157970576 /doc
parent4faa227a2d180762cf93c70a3e8bf3721baf3456 (diff)
downloadweechat-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.asciidoc7
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]