]> granicus.if.org Git - graphviz/commitdiff
Add function to free memory allocated by gvRenderData, as the applications run-time
authorEmden R. Gansner <erg@research.att.com>
Mon, 8 Jul 2013 15:36:06 +0000 (11:36 -0400)
committerEmden R. Gansner <erg@research.att.com>
Mon, 8 Jul 2013 15:36:06 +0000 (11:36 -0400)
doc/libguide/basic.tex

index 1246bfa1a697792dfd52931ab52528f256461a2d..e340a7c516388e9c9a5a8c0729a70a6dd34e8241 100644 (file)
@@ -693,8 +693,14 @@ Of note is
       unsigned int *length)
 \end{verbatim}
 which writes the output of the rendering onto an allocated character buffer. A pointer
-to this buffer is returned in {\tt result} and the number of bytes written is stored in
+to this buffer is returned in {\tt *result} and the number of bytes written is stored in
 {\tt length}. After using the buffer, the memory should be freed by the application.
+As the calling program may rely on a different run-time system than that used by
+\gviz, the library provides the function 
+\begin{verbatim}
+    gvFreeRenderData (char *data); 
+\end{verbatim}
+which can be used to free the memory pointed to by {\tt *result}.
 
 Sometimes, an application will decide to do its own rendering.
 An application-supplied