Use g_param_spec_ref_sink instead of separate ref, sink
authorMatthias Clasen <mclasen@redhat.com>
Sun, 5 Jun 2011 03:43:05 +0000 (23:43 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 5 Jun 2011 03:43:05 +0000 (23:43 -0400)
gobject/gobject.c

index e5c6b03..a4b2e33 100644 (file)
@@ -404,8 +404,7 @@ install_property_internal (GType       g_type,
       return;
     }
 
-  g_param_spec_ref (pspec);
-  g_param_spec_sink (pspec);
+  g_param_spec_ref_sink (pspec);
   PARAM_SPEC_SET_PARAM_ID (pspec, property_id);
   g_param_spec_pool_insert (pspec_pool, pspec, g_type);
 }