On Thu, 29 Jan 2004, qn wang wrote:

> Here I get some source of a function from the gtkwidget.c.
> Based on these source I wonder that maybe memory leak will happen,
> because rev_path is not freed after using g_realloc() to allocate memory
> for it.

>From glancing at the code it seems as if your suggested fix would indeed
get rid of a leak, since rev_path gets strdup()ed before being passed out
of the function.

If I were you I'd grab a memory debugging tool (I've used ccmalloc) and
let that lose on your code and gtk+. It's not entirely trivial and I've
never used it on large libraries. Read the docs. There are probably better
tools. I'd ask over at a Unicx programming Usenet newsgroup.

Good luck,
--Daniel

_______________________________________________
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list

Reply via email to