memory leaks in pangoft2topgm



Hi - I downloaded the pango sources from CVS this
morning, and compiled with pango-1.2.5, which I
had previously installed:

gcc -g -Wall -o pangoft2topgm argcontext.c
pangoft2topgm.c `pkg-config --cflags pangoft2
--libs pangoft2`

Running through valgrind-20031012, I get a lot of
memory leaks

valgrind -v --leak-check=yes --show-reachable=yes
--num-callers=24 ./pangoft2topgm --output
HELLO.pgm HELLO.utf8

==26875== LEAK SUMMARY:
==26875==    definitely lost: 1054 bytes in 10 blocks.
==26875==    possibly lost:   2525 bytes in 21 blocks.
==26875==    still reachable: 2067739 bytes in
7697 blocks.
==26875==         suppressed: 0 bytes in 0 blocks.

I'm trying to use pango in my own application, and
I'm getting the same type of memory leaks, so I
want to know how the context, layout, etc should
be destroyed.

By the way, I had to make a symbolic link to
pango.modules in the examples/ directory or else
pangoft2topgm complained about not being able to
find it.

Thanks,
Hari Nair



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