[evolution-data-server/dbus-calendar: 7/10] Use g_value_dup_object instead of get+ref
- From: Ross Burton <rburton src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [evolution-data-server/dbus-calendar: 7/10] Use g_value_dup_object instead of get+ref
- Date: Fri, 14 Aug 2009 07:29:45 +0000 (UTC)
commit 94362419f9c5ccc3108345b2ee6d3e18ebbf1718
Author: Ross Burton <ross linux intel com>
Date: Wed Jul 1 12:45:44 2009 +0100
Use g_value_dup_object instead of get+ref
calendar/libedata-cal/e-data-cal-view.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/calendar/libedata-cal/e-data-cal-view.c b/calendar/libedata-cal/e-data-cal-view.c
index ccd4786..fc16e27 100644
--- a/calendar/libedata-cal/e-data-cal-view.c
+++ b/calendar/libedata-cal/e-data-cal-view.c
@@ -288,7 +288,7 @@ e_data_cal_view_set_property (GObject *object, guint property_id, const GValue *
switch (property_id) {
case PROP_BACKEND:
- priv->backend = g_object_ref (E_CAL_BACKEND (g_value_get_object (value)));
+ priv->backend = E_CAL_BACKEND (g_value_dup_object (value));
break;
case PROP_LISTENER:
e_data_cal_view_add_listener (query, g_value_get_pointer (value));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]