[Gtk-sharp-list] destructors.

Miguel de Icaza miguel@ximian.com
14 Aug 2002 11:58:23 -0400


Hey guys,

    Another item missing: we need destructors for some of the classes in
Gdk, so they release their associated resources.  For instance, a Pixbuf
should unref the image when it is no longer referenced.

     Besides this, as I was telling Rachel, I think that most Gdk
objects that actually allocate resources on the X server (pixmaps,
windows, colors, fonts, gcs, colormaps) should implement the IDisposable
interface, so that we can deterministically control the resource
allocation.

Miguel