Re: [gtk-list] possible memory leak in gtk_label_set?



On Tue, 28 Apr 1998, Des Herriott wrote:

> I've noticed this on both Solaris 2.6 and Red Hat 5.0, from both C
> and Perl Gtk.  The best demo is to continually update the label in
> a gtk_label widget via gtk_widget_set().  I've enclosed a small C
> program to demonstrate this.
> 
> If you run the program, and watch its memory usage via top or ps,
> the total process size grows by 4K every few seconds.
> 
> Any ideas?  I've had a brief look at gtklabel.c and I see nothing
> *obviously* wrong.  I'll carry on looking anyway.  I'm going to 
> enable the glib memory checking & profiling for a start.  I shall
> report back when I know more...

the problem is with the timout/idle handler invokation code in gtk-1.0.0.
it is the same bug described in Subject: Re: Memory leaks and will be fixed
in the next release.

> -- 
> Des Herriott
> des@ops.netcom.net.uk
> 

---
ciaoTJ





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