From 0f211f78a59fcb91dfa85f45b1dea3714b06247b Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sat, 21 May 2011 03:57:32 +0200 Subject: [PATCH] styleproperties: Class ref no longer necessary Now that we initialize the pspecs on-demand, we can avoid the class ref. --- gtk/gtkstyleproperties.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/gtk/gtkstyleproperties.c b/gtk/gtkstyleproperties.c index 4328121b58..e32c6900dd 100644 --- a/gtk/gtkstyleproperties.c +++ b/gtk/gtkstyleproperties.c @@ -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; }