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.
This commit is contained in:
Adrien Destugues
2018-08-28 19:14:57 +02:00
parent 372195500d
commit 03e5dd5273
+4 -3
View File
@@ -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
*/