2004-11-04 Todd Berman <tberman@off.net>

* glib/ListBase.cs: Make sure to properly check if it is a
        GLib.Object subclass.

svn path=/trunk/gtk-sharp/; revision=35654
This commit is contained in:
Todd Berman 2004-11-04 19:43:10 +00:00
parent fe6aad5317
commit 838882b81a
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2004-11-04 Todd Berman <tberman@off.net>
* glib/ListBase.cs: Make sure to properly check if it is a
GLib.Object subclass.
2004-11-04 Todd Berman <tberman@off.net>
* doc/en/GLib/ListBase.xml: Add documentation for ListBase.Empty

View File

@ -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));