freetype-devel
[Top][All Lists]
Advanced

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

Re: FT_FACE_FLAG_EXTERNAL_STREAM -> memory leak ???


From: David Turner
Subject: Re: FT_FACE_FLAG_EXTERNAL_STREAM -> memory leak ???
Date: Thu, 27 Jul 2000 19:44:17 +0200


Just van Rossum a écrit :
> 
> At 7:10 PM +0200 27-07-2000, David Turner wrote:
> >Sorry for not announcing it, but this is now fixed (as well as one other
> >memory leak + a segfault bug in the auto-hinter)..
> 
> I see.. But I think the fix is wrong: you close the stream always, and only
> free the stream record if it's not external. I think it should be: close
> the stream if it isn't external, always free the stream record. Am I wrong?
> 

Actually, "ft_init_stream" has been modified. When an external stream
is used, no new "stream" object is created (instead, face->stream points
to the custom stream directly).

so what happens is the following on ft_done_stream:

  - always close the stream
  - free the stream object it isn't external

- David



reply via email to

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