Re: why is pango_font_description_set_* functions leaking

On Tue, 2 May 2006, nerdy wrote:

> Hello all,
> I found that the functions pango_font_description_set_family
> and pango_font_description_set_size are leaking memory. I am
> using pango version 1.4.0.
> fontdesc =  pango_font_description_new();
> pango_font_description_set_family(fontdesc,"courier");
> pango_font_description_set_size(fontdesc,size*PANGO_SCALE);
> pango_font_description_free (fontdesc);
> When i ran the program (pasted below) and saw the memory usage
> profile from top command, i see that a the program allocates a
> lot of memory continuously. When i commented out the statements
> that i suspect are leaky, i dont see any contiuous memory
> allocation. Is this behaviour typical of pango or am i missing
> something. Please clarify my doubt.

Without checking the code, your Pango version is years old, so
I'll not be surprised if it had leaks.

> Thanks in advance,
> nerdy


"Commandment Three says Do Not Kill, Amendment Two says Blood Will Spill"
	-- Dan Bern, "New American Language"

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