ref: a02976d2327b88ef82dba266ef11d763cffa8735
parent: 095a4cc1f39edb4b0e4d38d3186a8b7b9509dcf0
author: David Turner <[email protected]>
date: Wed Mar 20 10:37:12 EST 2002
* 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..
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
--- a/src/base/ftdbgmem.c
+++ b/src/base/ftdbgmem.c
@@ -324,12 +324,13 @@
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(