From 45639881b5ddb56492bd3ba329e982517cc9ef54 Mon Sep 17 00:00:00 2001 From: rhn Date: Mon, 17 Dec 2018 17:57:46 +0000 Subject: [PATCH] lib: Explicitly state when replies will be destroyed Without an explicit guarantee, it's not clear how to use the reference. --- lib/notmuch.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/notmuch.h b/lib/notmuch.h index 247f6ad7..aa032e09 100644 --- a/lib/notmuch.h +++ b/lib/notmuch.h @@ -1400,6 +1400,8 @@ notmuch_message_get_thread_id (notmuch_message_t *message); * If there are no replies to 'message', this function will return * NULL. (Note that notmuch_messages_valid will accept that NULL * value as legitimate, and simply return FALSE for it.) + * + * The returned list will be destroyed when the thread is destroyed. */ notmuch_messages_t * notmuch_message_get_replies (notmuch_message_t *message);