aboutsummaryrefslogtreecommitdiffstats
path: root/modules/calendar/e-cal-shell-view-private.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2011-06-30 05:08:37 +0800
committerMilan Crha <mcrha@redhat.com>2011-06-30 05:08:37 +0800
commit87c04cfc2ccd7ffea028ee4e1d7a7e5d554ca056 (patch)
treeeeb8a4dc20cccdda68aeb5fff0274e44511bde8f /modules/calendar/e-cal-shell-view-private.c
parenta6c6699511d9fdf96bb36e5ff4cf7c91c0ca07f7 (diff)
downloadgsoc2013-evolution-87c04cfc2ccd7ffea028ee4e1d7a7e5d554ca056.tar
gsoc2013-evolution-87c04cfc2ccd7ffea028ee4e1d7a7e5d554ca056.tar.gz
gsoc2013-evolution-87c04cfc2ccd7ffea028ee4e1d7a7e5d554ca056.tar.bz2
gsoc2013-evolution-87c04cfc2ccd7ffea028ee4e1d7a7e5d554ca056.tar.lz
gsoc2013-evolution-87c04cfc2ccd7ffea028ee4e1d7a7e5d554ca056.tar.xz
gsoc2013-evolution-87c04cfc2ccd7ffea028ee4e1d7a7e5d554ca056.tar.zst
gsoc2013-evolution-87c04cfc2ccd7ffea028ee4e1d7a7e5d554ca056.zip
Add a bit more error checking and do not leak icalcomponent-s
Diffstat (limited to 'modules/calendar/e-cal-shell-view-private.c')
-rw-r--r--modules/calendar/e-cal-shell-view-private.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/calendar/e-cal-shell-view-private.c b/modules/calendar/e-cal-shell-view-private.c
index d4cee1a627..0ca3f344ec 100644
--- a/modules/calendar/e-cal-shell-view-private.c
+++ b/modules/calendar/e-cal-shell-view-private.c
@@ -871,8 +871,7 @@ e_cal_shell_view_transfer_item_to (ECalShellView *cal_shell_view,
if (success) {
/* Use master object when working
* with a recurring event ... */
- icalcomp_clone =
- icalcomponent_new_clone (icalcomp);
+ icalcomp_clone = icalcomponent_new_clone (icalcomp);
icalcomponent_free (icalcomp);
} else {
/* ... or remove the recurrence ID ... */