Minor documentation improvements.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
diff --git a/include/freetype/ftglyph.h b/include/freetype/ftglyph.h
index 9c2a999..ad60795 100644
--- a/include/freetype/ftglyph.h
+++ b/include/freetype/ftglyph.h
@@ -235,7 +235,8 @@ FT_BEGIN_HEADER
/* FT_Glyph_Copy */
/* */
/* <Description> */
- /* A function used to copy a glyph image. */
+ /* A function used to copy a glyph image. Note that the created */
+ /* @FT_Glyph object must be released with @FT_Done_Glyph. */
/* */
/* <Input> */
/* source :: A handle to the source glyph object. */
diff --git a/include/freetype/ftsizes.h b/include/freetype/ftsizes.h
index 0fd6f0f..492ba63 100644
--- a/include/freetype/ftsizes.h
+++ b/include/freetype/ftsizes.h
@@ -4,7 +4,7 @@
/* */
/* FreeType size objects management (specification). */
/* */
-/* Copyright 1996-2001 by */
+/* Copyright 1996-2001, 2003 by */
/* David Turner, Robert Wilhelm, and Werner Lemberg. */
/* */
/* This file is part of the FreeType project, and may only be used, */
@@ -101,7 +101,9 @@ FT_BEGIN_HEADER
/* FT_Done_Size */
/* */
/* <Description> */
- /* Discards a given size object. */
+ /* Discards a given size object. Note that @FT_Done_Face */
+ /* automatically discards all size objects allocated with */
+ /* @FT_New_Size. */
/* */
/* <Input> */
/* size :: A handle to a target size object. */
diff --git a/src/base/ftobjs.c b/src/base/ftobjs.c
index 7665b54..0e12c9b 100644
--- a/src/base/ftobjs.c
+++ b/src/base/ftobjs.c
@@ -689,9 +689,9 @@
/* discard all sizes for this face */
FT_List_Finalize( &face->sizes_list,
- (FT_List_Destructor)destroy_size,
- memory,
- driver );
+ (FT_List_Destructor)destroy_size,
+ memory,
+ driver );
face->size = 0;
/* now discard client data */
@@ -775,7 +775,7 @@
/* caller should have already checked that `face' is valid */
- FT_ASSERT ( face );
+ FT_ASSERT( face );
first = face->charmaps;