# HG changeset patch # User Benjamin Golinvaux # Date 1575195168 -3600 # Node ID 75268c1ea3096b6ee7fcecfa38d8b5debd6e1e3c # Parent 5f1b1a8b2c286a29ad51c10a0d358d72697ee6ae Added note about metadata returned string lifetime diff -r 5f1b1a8b2c28 -r 75268c1ea309 Plugins/Include/orthanc/OrthancCPlugin.h --- a/Plugins/Include/orthanc/OrthancCPlugin.h Mon Nov 25 05:41:28 2019 +0100 +++ b/Plugins/Include/orthanc/OrthancCPlugin.h Sun Dec 01 11:12:48 2019 +0100 @@ -2886,7 +2886,10 @@ * @param context The Orthanc plugin context, as received by OrthancPluginInitialize(). * @param instance The instance of interest. * @param metadata The metadata of interest. - * @return The metadata value if success, NULL if error. + * @return The metadata value if success, NULL if error. Please note that the + * returned string belongs to the instance object and must NOT be + * deallocated. Please make a copy of the string if you wish to access + * it later. * @ingroup Callbacks **/ ORTHANC_PLUGIN_INLINE const char* OrthancPluginGetInstanceMetadata(