aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/dialogs/cal-prefs-dialog.c3
-rw-r--r--calendar/gui/itip-utils.c6
2 files changed, 5 insertions, 4 deletions
diff --git a/calendar/gui/dialogs/cal-prefs-dialog.c b/calendar/gui/dialogs/cal-prefs-dialog.c
index 2e61fc0bd5..639738c3bc 100644
--- a/calendar/gui/dialogs/cal-prefs-dialog.c
+++ b/calendar/gui/dialogs/cal-prefs-dialog.c
@@ -318,7 +318,8 @@ config_control_destroy_callback (GtkObject *object,
dialog_data = (DialogData *) data;
- /* (Nothing to free in the struct.) */
+ gtk_object_unref (GTK_OBJECT (dialog_data->xml));
+
g_free (dialog_data);
}
diff --git a/calendar/gui/itip-utils.c b/calendar/gui/itip-utils.c
index ee0d78b0b6..7e9efdbb57 100644
--- a/calendar/gui/itip-utils.c
+++ b/calendar/gui/itip-utils.c
@@ -601,7 +601,7 @@ comp_minimal (CalComponent *comp, gboolean attendee)
const char *uid;
GSList *comments;
struct icaltimetype itt;
- CalComponentRange *recur_id;
+ CalComponentRange recur_id;
clone = cal_component_new ();
cal_component_set_new_vtype (clone, cal_component_get_vtype (comp));
@@ -644,8 +644,8 @@ comp_minimal (CalComponent *comp, gboolean attendee)
cal_component_free_text_list (comments);
cal_component_get_recurid (comp, &recur_id);
- if (recur_id->datetime->value != NULL)
- cal_component_set_recurid (clone, recur_id);
+ if (recur_id.datetime.value != NULL)
+ cal_component_set_recurid (clone, &recur_id);
icomp = cal_component_get_icalcomponent (comp);
icomp_clone = cal_component_get_icalcomponent (clone);