From 11a45d9e41b0cd95c3909f6df8c55d5c1561a80a Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Sat, 18 Oct 2003 16:56:13 +0000 Subject: [PATCH] Minor documentation improvements. --- include/freetype/ftglyph.h | 3 ++- include/freetype/ftsizes.h | 6 ++++-- src/base/ftobjs.c | 8 ++++---- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/include/freetype/ftglyph.h b/include/freetype/ftglyph.h index 9c2a999b9..ad60795e6 100644 --- a/include/freetype/ftglyph.h +++ b/include/freetype/ftglyph.h @@ -235,7 +235,8 @@ FT_BEGIN_HEADER /* FT_Glyph_Copy */ /* */ /* */ - /* 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. */ /* */ /* */ /* source :: A handle to the source glyph object. */ diff --git a/include/freetype/ftsizes.h b/include/freetype/ftsizes.h index 0fd6f0ffb..492ba6399 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 */ /* */ /* */ - /* 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. */ /* */ /* */ /* size :: A handle to a target size object. */ diff --git a/src/base/ftobjs.c b/src/base/ftobjs.c index 7665b544a..0e12c9b28 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;