Re: why is pango_font_description_set_* functions leaking
- From: Behdad Esfahbod <behdad cs toronto edu>
- To: nerdy <nerds_ebook1 yahoo com>
- Cc: gtk-devel <gtk-devel-list gnome org>, gtk-app-devel <gtk-app-devel-list gnome org>, gtk-i18n <gtk-i18n-list gnome org>, gtk <gtk-list gnome org>
- Subject: Re: why is pango_font_description_set_* functions leaking
- Date: Tue, 2 May 2006 10:55:25 -0400 (EDT)
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
--behdad
http://behdad.org/
"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]