Commit 66c7ece8e77a1a00e41d339237d5bfcdfe21ece2

Werner Lemberg 2006-12-08T15:51:51

Improve documentation of FT_New_Memory_Face.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/include/freetype/freetype.h b/include/freetype/freetype.h
index 6344b6c..f8e16e0 100644
--- a/include/freetype/freetype.h
+++ b/include/freetype/freetype.h
@@ -1799,6 +1799,9 @@ FT_BEGIN_HEADER
   /* <Return>                                                              */
   /*    FreeType error code.  0 means success.                             */
   /*                                                                       */
+  /* <Note>                                                                */
+  /*    You must not deallocate the memory before calling @FT_Face_Done.   */
+  /*                                                                       */
   FT_EXPORT( FT_Error )
   FT_New_Memory_Face( FT_Library      library,
                       const FT_Byte*  file_base,