styleproperties: Class ref no longer necessary

Now that we initialize the pspecs on-demand, we can avoid the class ref.
This commit is contained in:
Benjamin Otte 2011-05-21 03:57:32 +02:00
parent 85e900b522
commit 0f211f78a5

View File

@ -470,13 +470,10 @@ gtk_style_properties_lookup_property (const gchar *property_name,
GParamSpec **pspec)
{
const GtkStyleProperty *node;
GtkStylePropertiesClass *klass;
gboolean found = FALSE;
g_return_val_if_fail (property_name != NULL, FALSE);
klass = g_type_class_ref (GTK_TYPE_STYLE_PROPERTIES);
node = gtk_style_property_lookup (property_name);
if (node)
@ -490,8 +487,6 @@ gtk_style_properties_lookup_property (const gchar *property_name,
found = TRUE;
}
g_type_class_unref (klass);
return found;
}