* src/base/ftdbgmem.c (ft_mem_table_destroy): fixed a small bug that

caused the library to crash with Electric Fence when memory debugging
        is used..
This commit is contained in:
David Turner 2002-03-20 15:37:12 +00:00
parent 5819e3f3c7
commit d19bd8003f
2 changed files with 6 additions and 1 deletions

View File

@ -4,6 +4,10 @@
allocation bug that was due to un-careful renaming of the FT_SubGlyph
type..
* src/base/ftdbgmem.c (ft_mem_table_destroy): fixed a small bug that
caused the library to crash with Electric Fence when memory debugging
is used..
* renaming stream macros. Examples:
FILE_Skip => FT_STREAM_SKIP

View File

@ -324,13 +324,14 @@
table->size = 0;
table->nodes = 0;
free( table );
printf(
"FreeType: total memory allocations = %ld\n", table->alloc_total );
printf(
"FreeType: maximum memory footprint = %ld\n", table->alloc_max );
free( table );
if ( leak_count > 0 )
ft_mem_debug_panic(
"FreeType: %ld bytes of memory leaked in %ld blocks\n",