Sebastian Bauer | 12 Nov 14:41

Leak in the pango cairo example?

Hello,

currently I'm playing a little bit around with pango. However, in my
application I get a memory leak which, by using valgrind, could be addressed
to pango, in particular, to the pango_layout_get_size() function. Therefore I
tried the cairo example, as provided at
http://library.gnome.org/devel/pango/unstable/pango-Cairo-Rendering.html in
order to check, whether my code is wrong.

However, even with Example 1 that is listed there, I get those leaks. You'll
find the output of valgrind attached to this mail. Is there anything that can
be done about the leaks?

I'm using pango 1.20.5.

Any help is appreciated! Thanks in advance!

Best,
Sebastian
Attachment (pango.out): application/octet-stream, 5419 bytes
_______________________________________________
gtk-i18n-list mailing list
gtk-i18n-list <at> gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-i18n-list
Sebastian Bauer | 12 Nov 15:06

Re: Leak in the pango cairo example?

Hi,

Sebastian Bauer <mail <at> sebastianbauer.info> schrieb:
[...]
> Therefore I
> tried the cairo example, as provided at
> http://library.gnome.org/devel/pango/unstable/pango-Cairo-Rendering.html in
> order to check, whether my code is wrong.
> 
> However, even with Example 1 that is listed there, I get those leaks. You'll
> find the output of valgrind attached to this mail. Is there anything that
can
> be done about the leaks?
> 
> I'm using pango 1.20.5.

Replying to myself. I also tried with 1.22.2, because I read that there was a
memory leak fixed. However, they are still leaks. I attached the new valgrind
output.

Bye,
Sebastian
sba <at> my:~/test$ valgrind --leak-check=full ./a.out test.png
==17736== Memcheck, a memory error detector.
==17736== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al.
==17736== Using LibVEX rev 1854, a library for dynamic binary translation.
==17736== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP.
==17736== Using valgrind-3.3.1-Debian, a dynamic binary instrumentation framework.
(Continue reading)


Gmane