Re: unref container



On Thu, 2003-08-28 at 14:17, Yuchung Cheng wrote:
hi i am a gtk newbie and i am getting assertions while doing
g_object_unref((GOBJECT)vbox) in a c++ destructor.

seems i shouldn't unref containers but if i use gtk_vbox_new, shoudn't
i clean it on existing? tia

Parent objects usually destroy the children when they die, so if you
simply destroy the window that the vbox is in, the reference counting
mechanism will make sure the vbox and all it's children are destroyed.

Michael



-yuchung
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
-- 
Michael L Torrie <torriem chem byu edu>



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