Re: Memory leaks in Pango ?



Hi Havoc,

Am I missing something here ? I took a quick look at the function in
pango sources and did not notice anything wrong.

Try "memprof" and see what's up.

Well, actually, this is memprof that shows that the memory keeps
growing. memprof doesn't report any leak there (but a few elsewhere),
but still, the memory usage allocated by the process, according to
memprof, grows from 1Mb up to 8Mb as much as the routine is called.

It's worth noting that I did the same test with testgtk, and some
widgets such as the "range control" shows exactly the same behaviour
(which is not so surprising since the range control widget use exactly
the same techniques as I do in my window manager).

As you move the range controls in testgtk, you can watch the memory
growing very fast.

I'm pretty sure there is something wrong somewhere. I did the test on
another system, just to make sure, and got the same result.

The test is fairly simple to reproduce :

memprof ./testgtk

Select range widget

Move the range buttons a few times and watch the total bytes alocated in
memprof. 

Cheers,
-- 
Olivier               <fourdan xfce org>            http://www.xfce.org
-----------------------------------------------------------------------
XFce is a lightweight  desktop  environment  for  various *NIX systems.
Designed for productivity,  it loads  and  executes  applications fast,
while conserving  system resources. XFce is all free software, released
under GNU General Public License.    Available from http://www.xfce.org




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