From: Alexander Larsson Date: Thu, 28 May 2009 13:34:07 +0000 (+0200) Subject: Ref the right type in g_socket_control_message_deserialize X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=d32226da6d4ff565aebd41b5f126d625dc42816b;p=dana%2Fcg-glib.git Ref the right type in g_socket_control_message_deserialize We were not looking at the right type at all due to a typo. --- diff --git a/gio/gsocketcontrolmessage.c b/gio/gsocketcontrolmessage.c index 2a384a70..4400d006 100644 --- a/gio/gsocketcontrolmessage.c +++ b/gio/gsocketcontrolmessage.c @@ -195,7 +195,7 @@ g_socket_control_message_deserialize (int level, message = NULL; for (i = 0; i < n_message_types; i++) { - klass = (GSocketControlMessageClass *)g_type_class_ref (type); + klass = (GSocketControlMessageClass *)g_type_class_ref (message_types[i]); if (klass && klass->deserialize) {