[9660] in The GTK GIMP ToolKit mailing list archive

home help back first fref pref prev next nref lref last post

[gtk-list] memory maintence in gtk

daemon@ATHENA.MIT.EDU (Todd Gureckis)
Thu Oct 29 23:41:47 1998

Date: Thu, 29 Oct 1998 20:41:25 -0800 (PST)
From: Todd Gureckis <gureckis@well.com>
To: gtk-list@redhat.com
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com


When you create a dialog window to say, set preference for a application,
is it necessary/customary to free all the memory allocated by the creation
of the window once it is closed... for example running free() on all
the GtkWidget pointers in the dialog window?

Is there a built in way to do this in gtk?  This is a kind of un-informed
observation, but when i create a dialog, then later gtk_widget_destroy()
the dialog, the memory size of my application does not shrink when I list
it in top.  I wasn't sure if it would be better to save the memory,
and dynamically allocate the whole dialog window, or leave it in memory,
so cpu is saved the next time the dialog window is created.

any suggestion/answers would be appreciated,

tod.

-- 
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post