aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/dialogs/recurrence-page.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2012-04-23 22:43:08 +0800
committerMilan Crha <mcrha@redhat.com>2012-04-23 22:43:08 +0800
commit3506b02eedc49959bf3e04c7f569ef2b4d8c1ee7 (patch)
tree4177727b83f2af82872fac5832546306792ca0ab /calendar/gui/dialogs/recurrence-page.c
parente2832731d2594be58d9581075dc25a9845893b1d (diff)
downloadgsoc2013-evolution-3506b02eedc49959bf3e04c7f569ef2b4d8c1ee7.tar.gz
gsoc2013-evolution-3506b02eedc49959bf3e04c7f569ef2b4d8c1ee7.tar.zst
gsoc2013-evolution-3506b02eedc49959bf3e04c7f569ef2b4d8c1ee7.zip
Fix possible memory leaks of GError structures
Diffstat (limited to 'calendar/gui/dialogs/recurrence-page.c')
-rw-r--r--calendar/gui/dialogs/recurrence-page.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/calendar/gui/dialogs/recurrence-page.c b/calendar/gui/dialogs/recurrence-page.c
index 838ab76c4d..56601cee74 100644
--- a/calendar/gui/dialogs/recurrence-page.c
+++ b/calendar/gui/dialogs/recurrence-page.c
@@ -634,8 +634,11 @@ rpage_get_objects_for_uid_cb (GObject *source_object,
ecalcomps = NULL;
if (g_error_matches (error, E_CLIENT_ERROR, E_CLIENT_ERROR_CANCELLED) ||
g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED)) {
+ g_clear_error (&error);
return;
}
+
+ g_clear_error (&error);
}
update_with_readonly (rpage, g_slist_length (ecalcomps) > 1);
@@ -659,8 +662,11 @@ rpage_get_object_cb (GObject *source_object,
icalcomp = NULL;
if (g_error_matches (error, E_CLIENT_ERROR, E_CLIENT_ERROR_CANCELLED) ||
g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED)) {
+ g_clear_error (&error);
return;
}
+
+ g_clear_error (&error);
}
if (icalcomp) {