]> granicus.if.org Git - imagemagick/commitdiff
Warning to NOT free the string returned
authoranthony <anthony@git.imagemagick.org>
Wed, 12 May 2010 02:27:05 +0000 (02:27 +0000)
committeranthony <anthony@git.imagemagick.org>
Wed, 12 May 2010 02:27:05 +0000 (02:27 +0000)
for GetImageArtifact() and GetValueFromSplayTree()

magick/artifact.c
magick/splay-tree.c

index e686f4ee683ffce6e881d27d7587239fa561b22c..ca4cb786bb13d80e025a2005aca8691e83f9f931 100644 (file)
@@ -248,6 +248,9 @@ MagickExport void DestroyImageArtifacts(Image *image)
 %
 %  GetImageArtifact() gets a value associated with an image artifact.
 %
+%  WARNING: The pointer returned points directly to stored values.
+%  Do not free the memory they pointed to.
+%
 %  The format of the GetImageArtifact method is:
 %
 %      const char *GetImageArtifact(const Image *image,const char *key)
index 3b22b8ccf0781493801afda5b2856857e1e0c150..cdac5eb4d08ad468a91a2ca397731f2a9b3df3ba 100644 (file)
@@ -857,6 +857,9 @@ MagickExport void *GetNextValueInSplayTree(SplayTreeInfo *splay_tree)
 %
 %  GetValueFromSplayTree() gets a value from the splay-tree by its key.
 %
+%  WARNING: The pointer returned points directly into the values stored in
+%  tree. Do not free the memory pointed to.
+%
 %  The format of the GetValueFromSplayTree method is:
 %
 %      void *GetValueFromSplayTree(SplayTreeInfo *splay_tree,const void *key)