[gtk+] styleproperties: Class ref no longer necessary



commit 0f211f78a59fcb91dfa85f45b1dea3714b06247b
Author: Benjamin Otte <otte redhat com>
Date:   Sat May 21 03:57:32 2011 +0200

    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 files changed, 0 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtkstyleproperties.c b/gtk/gtkstyleproperties.c
index 4328121..e32c690 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;
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]