aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-week-view.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/e-week-view.c')
-rw-r--r--calendar/gui/e-week-view.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/calendar/gui/e-week-view.c b/calendar/gui/e-week-view.c
index b00a3afa18..3751e64f25 100644
--- a/calendar/gui/e-week-view.c
+++ b/calendar/gui/e-week-view.c
@@ -4372,9 +4372,9 @@ e_week_view_on_editing_stopped (EWeekView *week_view,
E_CALENDAR_VIEW (week_view), client);
}
- if (uid)
- g_free (uid);
- if (error)
+ g_free (uid);
+
+ if (error != NULL)
g_error_free (error);
/* we remove the object since we either got the update from the server or failed */