[glib] Use g_param_spec_ref_sink instead of separate ref, sink
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Use g_param_spec_ref_sink instead of separate ref, sink
- Date: Sun, 5 Jun 2011 03:43:36 +0000 (UTC)
commit 3b242bc5e9cf96188e61002e175ed33777a82e5d
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Jun 4 23:43:05 2011 -0400
Use g_param_spec_ref_sink instead of separate ref, sink
gobject/gobject.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gobject/gobject.c b/gobject/gobject.c
index e5c6b03..a4b2e33 100644
--- a/gobject/gobject.c
+++ b/gobject/gobject.c
@@ -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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]