From c05cb595dc83f0691227e004fc74017dc9b5fad9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Fri, 20 Mar 2020 07:08:14 +0100 Subject: [PATCH] doc: add note about call to "free" on result of info_get (plugin API reference) --- doc/en/weechat_plugin_api.en.adoc | 1 + doc/fr/weechat_plugin_api.fr.adoc | 1 + doc/it/weechat_plugin_api.it.adoc | 1 + doc/ja/weechat_plugin_api.ja.adoc | 1 + 4 files changed, 4 insertions(+) diff --git a/doc/en/weechat_plugin_api.en.adoc b/doc/en/weechat_plugin_api.en.adoc index 0d72b7a5c..90a78cdb7 100644 --- a/doc/en/weechat_plugin_api.en.adoc +++ b/doc/en/weechat_plugin_api.en.adoc @@ -15070,6 +15070,7 @@ Arguments: Return value: * string with info asked, NULL if an error occurred + (must be freed by calling "free" after use) [NOTE] With WeeChat ≥ 2.5, the value returned is an allocated string diff --git a/doc/fr/weechat_plugin_api.fr.adoc b/doc/fr/weechat_plugin_api.fr.adoc index 83ca963db..32714a3f1 100644 --- a/doc/fr/weechat_plugin_api.fr.adoc +++ b/doc/fr/weechat_plugin_api.fr.adoc @@ -15389,6 +15389,7 @@ Paramètres : Valeur de retour : * chaîne avec l'information demandée, NULL en cas d'erreur + (doit être supprimée par un appel à "free" après utilisation) [NOTE] Avec WeeChat ≥ 2.5, la valeur retournée est une chaîne allouée diff --git a/doc/it/weechat_plugin_api.it.adoc b/doc/it/weechat_plugin_api.it.adoc index f7a221c70..db1b3a93e 100644 --- a/doc/it/weechat_plugin_api.it.adoc +++ b/doc/it/weechat_plugin_api.it.adoc @@ -15677,6 +15677,7 @@ Argomenti: Valore restituito: * stringa con l'informazione richiesta, NULL in caso di errore + (deve essere liberata richiamando "free" dopo l'utilizzo) // TRANSLATION MISSING [NOTE] diff --git a/doc/ja/weechat_plugin_api.ja.adoc b/doc/ja/weechat_plugin_api.ja.adoc index fb738a897..54c3148cb 100644 --- a/doc/ja/weechat_plugin_api.ja.adoc +++ b/doc/ja/weechat_plugin_api.ja.adoc @@ -15052,6 +15052,7 @@ char *weechat_info_get (const char *info_name, const char *arguments); 戻り値: * 指定したインフォを含む文字列、エラーが起きた場合は NULL + (使用後には必ず "free" を呼び出して領域を開放してください) [NOTE] WeeChat バージョン 2.5 以上の場合、返却される値は確保された文字列です