source-dialog: clear previously unsaved calendars

This commit is contained in:
Georges Basile Stavracas Neto
2015-05-25 12:35:26 -04:00
committed by Erick Pérez Castellanos
parent fb2bfca990
commit 0415d2272b
+7
View File
@@ -340,6 +340,13 @@ select_calendar_file (GtkButton *button,
file = gtk_file_chooser_get_file (GTK_FILE_CHOOSER (dialog));
/**
* Remove any reminescent ESources
* cached before.
*/
if (priv->local_source != NULL)
g_clear_pointer (&(priv->local_source), g_object_unref);
/**
* Since we cannot guarantee that the
* type system registered ESourceLocal,