fixed a bug in FTC_Manager_Done
This commit is contained in:
parent
ca8d1cda94
commit
91bb16583b
@ -1,5 +1,9 @@
|
||||
2000-12-05 David Turner <david.turner@freetype.org>
|
||||
|
||||
* src/cache/ftcmanag.c (FTC_Manager_Done): fixed a bug that caused
|
||||
an occasional crash when the function was called (due to a dangling
|
||||
pointer)
|
||||
|
||||
* src/base/ftsystem.c (FT_Done_Memory): fixed an obvious bug,
|
||||
the ANSI "free" function was called, instead of "memory->free()"
|
||||
|
||||
|
6
src/cache/ftcmanag.c
vendored
6
src/cache/ftcmanag.c
vendored
@ -139,6 +139,7 @@
|
||||
FT_UNUSED( lru );
|
||||
|
||||
FT_Done_Size( (FT_Size)node->root.data );
|
||||
node->root.data = 0;
|
||||
}
|
||||
|
||||
|
||||
@ -299,8 +300,11 @@
|
||||
}
|
||||
|
||||
/* discard faces and sizes */
|
||||
FT_Lru_Done( manager->sizes_lru );
|
||||
FT_Lru_Done( manager->faces_lru );
|
||||
manager->faces_lru = 0;
|
||||
|
||||
FT_Lru_Done( manager->sizes_lru );
|
||||
manager->sizes_lru;
|
||||
|
||||
FREE( manager );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user