diff --git a/ChangeLog b/ChangeLog index 93480dc04..4b02d1c08 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-01-04 Mike Kestner + + * glib/GType.cs: fix incorrect null check noticed by Christian Hoff. + [Fixes #463445] + 2009-01-02 Mike Kestner * configure.in.in: clarify the Mono.Cairo summary comment. diff --git a/glib/GType.cs b/glib/GType.cs index 4455a8e00..dcc76fed0 100755 --- a/glib/GType.cs +++ b/glib/GType.cs @@ -258,7 +258,7 @@ namespace GLib { internal IntPtr ClassPtr { get { IntPtr klass = g_type_class_peek (val); - if (val == IntPtr.Zero) + if (klass == IntPtr.Zero) klass = g_type_class_ref (val); return klass; }