freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Devel] Patch: PCF driver memory leaks


From: Francesco Zappa Nardelli
Subject: [Devel] Patch: PCF driver memory leaks
Date: 28 Jan 2002 16:21:43 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1

Hello.

Thanks for spotting this. 

Werner, please, apply the following patch to the src/pcf/pcfdriver.c
file.

Suggested log: PCF_Done_Face: fix incorrect destruction of the face
object (face->toc.tables, face->root.family_name,
face->root.available_size, face->charset_encoding,
face->charset_registry are now freed).  Thanks to Niels Moseley.

Regards,
-francesco

--- pcfdriver.c.old     Mon Jan 28 16:08:34 2002
+++ pcfdriver.c Mon Jan 28 16:08:54 2002
@@ -66,6 +66,11 @@
         FREE( tmp->value );
     }
     FREE( face->properties );
+    FREE( face->toc.tables );
+    FREE( face->root.family_name );
+    FREE( face->root.available_sizes );
+    FREE( face->charset_encoding );
+    FREE( face->charset_registry );
 
     FT_TRACE4(( "DONE_FACE!!!\n" ));



reply via email to

[Prev in Thread] Current Thread [Next in Thread]