From 03e5dd5273ae9bcef15db099630c4c8cf8b7bbdc Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Tue, 28 Aug 2018 19:13:38 +0200 Subject: [PATCH] Fix documentation for BMessage::Previous The function allocates a message because it uses lazy initialization, however the user does not get ownership and must not delete it. Fixes #14413. --- docs/user/app/Message.dox | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/user/app/Message.dox b/docs/user/app/Message.dox index 16f0a568dd..c6204ddb6b 100644 --- a/docs/user/app/Message.dox +++ b/docs/user/app/Message.dox @@ -463,9 +463,10 @@ \brief Get the message to which this message is a reply. \return Returns a new BMessage with the same data stuctures as the message - to which this message is a reply. You get the ownership of this - message, so free it when you're done. If this message isn't a - reply to another message, this method will return \c NULL. + to which this message is a reply. The pointer is only valid as + long as this message is still allocated, you do not get ownership. + If this message isn't a reply to another message, this method will + return \c NULL. \since BeOS R3 */