diff options
Diffstat (limited to 'calendar/gui/dialogs/copy-source-dialog.c')
-rw-r--r-- | calendar/gui/dialogs/copy-source-dialog.c | 3 |
1 files changed, 2 insertions, 1 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); |