Re: Pango loads a font over and over again. (Major leak)

On Sat, 2004-09-11 at 15:42, Jonas Aaberg wrote:
> Hi,
> I'm using pango to render an image of a text (of default gtk font) via
> freetype part of pango. I believe that I have manage to hit
> a major memory leak in pango. For some reason the default TTF font gets
> loaded over and over again.
> (Look in /proc/<pid>/maps)
> I have attached a small example that rapidly consumes more and more
> memory. I have really tried to see if I have failed to dealloc
> something, but I have not been able to find something. Please correct me
> if I'm all wrong!

It's a known problem that PangoFT2Fontmap leaks:

But font maps are big, expensive objects. You really don't want to
be repeatedly creating and freeing them anyways.


Attachment: signature.asc
Description: This is a digitally signed message part

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