Use g_param_spec_ref_sink instead of separate ref, sink

This commit is contained in:
Matthias Clasen 2011-06-04 23:43:05 -04:00
parent 9eda9d9195
commit 3b242bc5e9

View 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);
}