diff options
Diffstat (limited to 'calendar/gui/dialogs/task-page.c')
-rw-r--r-- | calendar/gui/dialogs/task-page.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/calendar/gui/dialogs/task-page.c b/calendar/gui/dialogs/task-page.c index 9e051af37d..27be3bd6bd 100644 --- a/calendar/gui/dialogs/task-page.c +++ b/calendar/gui/dialogs/task-page.c @@ -1755,6 +1755,7 @@ tpage_client_opened_cb (GObject *source_object, if (!e_client_utils_open_new_finish (source, result, &client, &error)) { 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; } } @@ -1780,8 +1781,7 @@ tpage_client_opened_cb (GObject *source_object, gtk_dialog_run (GTK_DIALOG (dialog)); gtk_widget_destroy (dialog); - if (error) - g_error_free (error); + g_clear_error (&error); } else { icaltimezone *zone; ECalClient *cal_client = E_CAL_CLIENT (client); |