Re: Memory leaks in gnome_apps

Will a GNU/Linux person please correct me if I get this wrong,
since I don't use Linux.  This just comes from my recent
browsing of the GNU malloc.

You libc is not GNU libc, so it uses sbrk(), even for page
sized allocations (GNU libc uses mmap() for any allocation
larger than a page), so it cannot be returned to the system.

It is not really a problem since modern VM systems are optimized
for sparse memory allocation.  Is it causing a problem?

Manish Vachharajani wrote:
> I am writing a gnome app to install files to my pilot.  The problem is
> that no memory seems to be freed ever, when widgets are destroyed, or for
> that matter when I explicitly call g_free on some memory allocated with
> g_malloc, why?
> I have a tree view of files, so for example, I open of /dev, which has
> 1200 or so entries.  Now, ignoring gtk+, I allocate roughly 5k of memory.
> Then I collapse the tree branch, and my memory freeing callbacks say that
> they are freeing memory, but if I look, the memory usage never decreases.
> Has anyone else noticed this?  I am using the latest gtk+ from cvs as well
> as glib and gnome-libs.  If not, anyone I any idea why this is happening.
> Mansih
> Manish Vachharajani
> <>
> --
>          To unsubscribe: mail with
>                        "unsubscribe" as the Subject.

4.4 > 95

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