diff options
author | Rodrigo Moya <rodrigo@novell.com> | 2004-06-03 00:31:23 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@src.gnome.org> | 2004-06-03 00:31:23 +0800 |
commit | 5919bc5b8bcf8d9254db4aa3379ce7693ceb26d9 (patch) | |
tree | a240866ef3612f11af2ffb1f1039372130cc78f2 /calendar/gui/dialogs | |
parent | 81a9c1e88d1c08fd59c6492686b45d53919a99b6 (diff) | |
download | gsoc2013-evolution-5919bc5b8bcf8d9254db4aa3379ce7693ceb26d9.tar.gz gsoc2013-evolution-5919bc5b8bcf8d9254db4aa3379ce7693ceb26d9.tar.zst gsoc2013-evolution-5919bc5b8bcf8d9254db4aa3379ce7693ceb26d9.zip |
fixed leak and pass the correct icalcomponent to e_cal_modify_object.
2004-06-02 Rodrigo Moya <rodrigo@novell.com>
* gui/dialogs/copy-source-dialog.c (copy_source): fixed
leak and pass the correct icalcomponent to e_cal_modify_object.
svn path=/trunk/; revision=26154
Diffstat (limited to 'calendar/gui/dialogs')
-rw-r--r-- | calendar/gui/dialogs/copy-source-dialog.c | 3 | ||||
-rw-r--r-- | calendar/gui/dialogs/event-editor.c | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/calendar/gui/dialogs/copy-source-dialog.c b/calendar/gui/dialogs/copy-source-dialog.c index dca36f0771..7d20240334 100644 --- a/calendar/gui/dialogs/copy-source-dialog.c +++ b/calendar/gui/dialogs/copy-source-dialog.c @@ -83,7 +83,8 @@ copy_source (CopySourceDialogData *csdd) /* FIXME: process errors */ if (e_cal_get_object (dest_client, icalcomponent_get_uid (l->data), NULL, &icalcomp, NULL)) { - e_cal_modify_object (dest_client, icalcomp, CALOBJ_MOD_ALL, NULL); + e_cal_modify_object (dest_client, l->data, CALOBJ_MOD_ALL, NULL); + icalcomponent_free (icalcomp); } else { e_cal_create_object (dest_client, l->data, (char **) &uid, NULL); g_free ((gpointer) uid); diff --git a/calendar/gui/dialogs/event-editor.c b/calendar/gui/dialogs/event-editor.c index 7dee1c54d6..f8197b5f85 100644 --- a/calendar/gui/dialogs/event-editor.c +++ b/calendar/gui/dialogs/event-editor.c @@ -132,7 +132,7 @@ set_menu_sens (EventEditor *ee) e_cal_is_read_only (comp_editor_get_e_cal (COMP_EDITOR (ee)), &read_only, NULL); sens = priv->meeting_shown; - comp_editor_set_ui_prop (COMP_EDITOR (ee), + comp_editor_set_ui_prop (COMP_EDITOR (ee), "/commands/ActionScheduleMeeting", "sensitive", sens || read_only ? "0" : "1"); @@ -144,7 +144,7 @@ set_menu_sens (EventEditor *ee) sens = priv->meeting_shown && existing && user && !read_only; comp_editor_set_ui_prop (COMP_EDITOR (ee), "/commands/ActionCancelMeeting", - "sensitive", sens? "1" : "0"); + "sensitive", sens ? "1" : "0"); comp_editor_set_ui_prop (COMP_EDITOR (ee), "/commands/FileSave", |