From 9fb2c59b6ee060c1e4ea9cd9678f3a80e8141121 Mon Sep 17 00:00:00 2001 From: "B. Petersen" Date: Sat, 26 Sep 2020 18:01:41 +0200 Subject: [PATCH] clarify dc_str_unref() --- deltachat-ffi/deltachat.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deltachat-ffi/deltachat.h b/deltachat-ffi/deltachat.h index e7e10b51c..a47abc4e3 100644 --- a/deltachat-ffi/deltachat.h +++ b/deltachat-ffi/deltachat.h @@ -2186,10 +2186,11 @@ void dc_delete_all_locations (dc_context_t* context); * MUST NOT be released by the standard free() function; * always use dc_str_unref() for this purpose. * - dc_str_unref() MUST NOT be called for strings not returned by deltachat-core. - * - dc_str_unref() MUST NOT be called for other objectes returned by deltachat-core. + * - dc_str_unref() MUST NOT be called for other objects returned by deltachat-core. * * @memberof dc_context_t * @param str The string to release. + * If NULL is given, nothing is done. */ void dc_str_unref (char* str);