aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
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
parentc8008a3d4766ecb2b0f9d270db7052e5130f09e5 (diff)
downloadgsoc2013-evolution-3958832d1dcaf8394ffdd426b9ed5081a4883b60.tar
gsoc2013-evolution-3958832d1dcaf8394ffdd426b9ed5081a4883b60.tar.gz
gsoc2013-evolution-3958832d1dcaf8394ffdd426b9ed5081a4883b60.tar.bz2
gsoc2013-evolution-3958832d1dcaf8394ffdd426b9ed5081a4883b60.tar.lz
gsoc2013-evolution-3958832d1dcaf8394ffdd426b9ed5081a4883b60.tar.xz
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')
-rw-r--r--plugins/addressbook-file/ChangeLog4
-rw-r--r--plugins/addressbook-file/addressbook-file.c8
-rw-r--r--plugins/calendar-file/ChangeLog4
-rw-r--r--plugins/calendar-file/calendar-file.c7
4 files changed, 15 insertions, 8 deletions
diff --git a/plugins/addressbook-file/ChangeLog b/plugins/addressbook-file/ChangeLog
index 2dce8fb4f5..c44ddb846c 100644
--- a/plugins/addressbook-file/ChangeLog
+++ b/plugins/addressbook-file/ChangeLog
@@ -1,3 +1,7 @@
+2006-02-28 Christian Kellner <gicmo@gnome.org>
+
+ * addressbook-file.c: fixing a leak.
+
2005-12-25 Funda Wang <fundawang@linux.net.cn>
* Makefile.am: Mark this plugin as translatable (bug#301149).
diff --git a/plugins/addressbook-file/addressbook-file.c b/plugins/addressbook-file/addressbook-file.c
index 8320a31db5..3a237c1fe0 100644
--- a/plugins/addressbook-file/addressbook-file.c
+++ b/plugins/addressbook-file/addressbook-file.c
@@ -42,14 +42,14 @@ e_book_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;
}
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;
}