[Gtk-sharp-list] ComboBox leak?

Lluis Sanchez lluis at ximian.com
Thu Aug 24 21:04:26 EDT 2006


Run the following program:

public static void Main(string[] args)
{
	Gtk.Application.Init();
	Console.WriteLine (Gtk.Window.ListToplevels ().Length);
	
	Gtk.ComboBox combo = new Gtk.ComboBox ();
	Console.WriteLine (Gtk.Window.ListToplevels ().Length);
	
	combo.Destroy ();
	Console.WriteLine (Gtk.Window.ListToplevels ().Length);
}

It prints:
0
1
1

The new top level window is the menu used by the combo to show the
options, but that window is not destroyed when destroying the combo. Is
this a known issue or I'm missing something?

Lluis.




More information about the Gtk-sharp-list mailing list