[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Devel] pcfdriver.c memory leak
From: |
Detlef Würkner |
Subject: |
[Devel] pcfdriver.c memory leak |
Date: |
Tue, 05 Feb 2002 22:43:18 +0100 |
Hello!
A fix for the nearly-fixed pcf driver:
----8<----
--- freetype-2.0.7/src/pcf/pcfdriver.c.ori Mon Jan 28 23:52:24 2002
+++ freetype-2.0.7/src/pcf/pcfdriver.c Tue Feb 5 21:15:48 2002
@@ -52,7 +52,7 @@
PCF_Done_Face( PCF_Face face )
{
FT_Memory memory = FT_FACE_MEMORY( face );
- PCF_Property tmp = face->properties;
+ PCF_Property tmp;
int i;
@@ -61,6 +61,7 @@
for ( i = 0; i < face->nprops; i++ )
{
+ tmp = &face->properties[i];
FREE( tmp->name );
if ( tmp->isString )
FREE( tmp->value );
----8<----
Just tried out the memory debugger, works fine :-)
Ciao, Detlef
--
_ // address@hidden
\X/ Detlef Wuerkner, Langgoens/Germany
- [Devel] pcfdriver.c memory leak,
Detlef Würkner <=