Re: Release memory for a GtkWindow




Oops! sorry.. hehe :)
I thought it was just referenced to optimize the creations, then you
wouldn't
need to call gtk_widget_ref(..) again..

BTW, calling gtk_object_destroy() will destroy the widget, even if it has
refcount = 2, 3, ... or it will just return?


Sometimes ago, I've check the source code of that function and, as I
remember now, the memory was freed when ref_count dropped to 0.

Jean-Christophe





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