ref: 7418415f48f8f019b732a2e36b26af3ac9fbe900
parent: e3f41982a2391d2fcb61b8883af98aa4e5b82df1
author: Werner Lemberg <[email protected]>
date: Sat Oct 18 12:56:13 EDT 2003
Minor documentation improvements.
--- a/include/freetype/ftglyph.h
+++ b/include/freetype/ftglyph.h
@@ -235,7 +235,8 @@
/* 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. */
--- 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_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. */
--- 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;