aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/calendar-component.c
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@ximian.com>2004-01-14 02:03:34 +0800
committerRodrigo Moya <rodrigo@src.gnome.org>2004-01-14 02:03:34 +0800
commit32c0f829d9d1bd0306a97385834e0bafa426ef3e (patch)
treefd596c07b06449ad3f1808b599d296f38055f163 /calendar/gui/calendar-component.c
parent892c5237906cd1aa5731e3d9ba5cd55ff6dff515 (diff)
downloadgsoc2013-evolution-32c0f829d9d1bd0306a97385834e0bafa426ef3e.tar
gsoc2013-evolution-32c0f829d9d1bd0306a97385834e0bafa426ef3e.tar.gz
gsoc2013-evolution-32c0f829d9d1bd0306a97385834e0bafa426ef3e.tar.bz2
gsoc2013-evolution-32c0f829d9d1bd0306a97385834e0bafa426ef3e.tar.lz
gsoc2013-evolution-32c0f829d9d1bd0306a97385834e0bafa426ef3e.tar.xz
gsoc2013-evolution-32c0f829d9d1bd0306a97385834e0bafa426ef3e.tar.zst
gsoc2013-evolution-32c0f829d9d1bd0306a97385834e0bafa426ef3e.zip
free 'base_uri' at the end of the function, or it will leak, and removed
2004-01-13 Rodrigo Moya <rodrigo@ximian.com> * gui/calendar-component.c (impl_upgradeFromVersion): free 'base_uri' at the end of the function, or it will leak, and removed duplicated code to create the birthdays backend. svn path=/trunk/; revision=24202
Diffstat (limited to 'calendar/gui/calendar-component.c')
-rw-r--r--calendar/gui/calendar-component.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/calendar/gui/calendar-component.c b/calendar/gui/calendar-component.c
index ddcff4165c..0726ee9ccc 100644
--- a/calendar/gui/calendar-component.c
+++ b/calendar/gui/calendar-component.c
@@ -567,8 +567,6 @@ impl_upgradeFromVersion (PortableServer_Servant servant,
g_free (new_dir);
}
- g_free (base_uri);
-
/* create the remote source group */
group = e_source_group_new (_("On The Web"), "webcal://");
e_source_list_add_group (priv->source_list, group, -1);
@@ -588,17 +586,7 @@ impl_upgradeFromVersion (PortableServer_Servant servant,
e_source_list_sync (priv->source_list, NULL);
}
- /* create calendar for birthdays & anniversaries */
- if ((major < 0) ||
- ((major == 1) && (minor < 5)) ||
- ((major == 1) && (minor == 5) && (revision < 2))) {
- group = e_source_group_new (_("Birthdays"), "contacts://");
- source = e_source_new (_("Birthdays & Anniversaries"), "/");
- e_source_group_add_source (group, source, -1);
- e_source_group_set_readonly (group, TRUE);
- e_source_list_add_group (priv->source_list, group, -1);
- e_source_list_sync (priv->source_list, NULL);
- }
+ g_free (base_uri);
return CORBA_TRUE;
}