aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/calendar-file
diff options
context:
space:
mode:
authorChristian Kellner <gicmo@gnome.org>2006-02-28 19:24:09 +0800
committerAndre Klapper <aklapper@src.gnome.org>2006-02-28 19:24:09 +0800
commit3958832d1dcaf8394ffdd426b9ed5081a4883b60 (patch)
tree319abd3452cec5fdd2ac5bd2ba4a1caf91afec1c /plugins/calendar-file
parentc8008a3d4766ecb2b0f9d270db7052e5130f09e5 (diff)
downloadgsoc2013-evolution-3958832d1dcaf8394ffdd426b9ed5081a4883b60.tar.gz
gsoc2013-evolution-3958832d1dcaf8394ffdd426b9ed5081a4883b60.tar.zst
gsoc2013-evolution-3958832d1dcaf8394ffdd426b9ed5081a4883b60.zip
fixing a leak.
2006-02-28 Christian Kellner <gicmo@gnome.org> * evolution/plugins/addressbook-file/addressbook-file.c: * evolution/plugins/calendar-file/calendar-file.c: fixing a leak. svn path=/trunk/; revision=31609
Diffstat (limited to 'plugins/calendar-file')
-rw-r--r--plugins/calendar-file/ChangeLog4
-rw-r--r--plugins/calendar-file/calendar-file.c7
2 files changed, 7 insertions, 4 deletions
diff --git a/plugins/calendar-file/ChangeLog b/plugins/calendar-file/ChangeLog
index 4835b2b267..f99c80cd47 100644
--- a/plugins/calendar-file/ChangeLog
+++ b/plugins/calendar-file/ChangeLog
@@ -1,3 +1,7 @@
+2006-02-28 Christian Kellner <gicmo@gnome.org>
+
+ * calendar-file.c: fixing a leak.
+
2005-08-23 Not Zed <NotZed@Ximian.com>
* calendar-file.c (e_calendar_file_dummy): fix relative_uri type.
diff --git a/plugins/calendar-file/calendar-file.c b/plugins/calendar-file/calendar-file.c
index 7880436465..46aad63788 100644
--- a/plugins/calendar-file/calendar-file.c
+++ b/plugins/calendar-file/calendar-file.c
@@ -52,14 +52,13 @@ e_calendar_file_dummy (EPlugin *epl, EConfigHookItemFactoryData *data)
}
relative_uri = e_source_peek_relative_uri (source);
- if (relative_uri && *relative_uri) {
- g_free (uri_text);
-
+ g_free (uri_text);
+
+ if (relative_uri && *relative_uri) {
return NULL;
}
e_source_set_relative_uri (source, e_source_peek_uid (source));
- uri_text = e_source_get_uri (source);
return NULL;
}