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/copy-source-dialog.c | |
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/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); |