diff --git a/ChangeLog b/ChangeLog index 2d9474c0b..ba195a0c9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-11-04 Todd Berman + + * glib/ListBase.cs: Make sure to properly check if it is a + GLib.Object subclass. + 2004-11-04 Todd Berman * doc/en/GLib/ListBase.xml: Add documentation for ListBase.Empty diff --git a/glib/ListBase.cs b/glib/ListBase.cs index a151201af..406733bd7 100644 --- a/glib/ListBase.cs +++ b/glib/ListBase.cs @@ -163,7 +163,7 @@ namespace GLib { { for (uint i = 0; i < Count; i++) { - if (element_type == typeof (GLib.Object)) + if (typeof (GLib.Object).IsAssignableFrom (element_type)) g_object_unref (NthData (i)); else g_free (NthData (i));