freetype-devel
[Top][All Lists]
Advanced

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

FT_FACE_FLAG_EXTERNAL_STREAM -> memory leak ???


From: Boris Letocha
Subject: FT_FACE_FLAG_EXTERNAL_STREAM -> memory leak ???
Date: Thu, 27 Jul 2000 13:01:36 +0200

Hi!

Its look like memory leak problem then I use external stream in OpenFace.

in ft_new_input_stream is new stream allocated each time FT_OpenFace is
called
but when it is external ft_done_stream is not called.

    /* close the stream for this face if needed */
    if ( ( face->face_flags & FT_FACE_FLAG_EXTERNAL_STREAM ) == 0 )
      ft_done_stream( &face->stream );

But ft_done_stream not only closes stream, but also free memory of stream!

Boris Letocha

PS: Now I fixed it outside of FT (unseting FT_FACE_FLAG_EXTERNAL_STREAM flag
after OpenFace and setting close method to NULL)

PPS: Or am I complete wrong?



reply via email to

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