aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/save-calendar/ical-format.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/save-calendar/ical-format.c')
-rw-r--r--plugins/save-calendar/ical-format.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/save-calendar/ical-format.c b/plugins/save-calendar/ical-format.c
index 77e5558e29..47cc15f9d7 100644
--- a/plugins/save-calendar/ical-format.c
+++ b/plugins/save-calendar/ical-format.c
@@ -97,17 +97,17 @@ do_save_calendar_ical (FormatHandler *handler,
GSList *objects = NULL;
icalcomponent *top_level = NULL;
- primary_source = e_source_selector_get_primary_selection (selector);
-
if (!dest_uri)
return;
/* open source client */
+ primary_source = e_source_selector_ref_primary_selection (selector);
source_client = e_cal_client_new (primary_source, type, &error);
if (source_client)
g_signal_connect (
source_client, "authenticate",
G_CALLBACK (e_client_utils_authenticate_handler), NULL);
+ g_object_unref (primary_source);
if (!source_client || !e_client_open_sync (E_CLIENT (source_client), TRUE, NULL, &error)) {
display_error_message (gtk_widget_get_toplevel (GTK_WIDGET (selector)), error->message);