diff options
-rw-r--r-- | plugins/addressbook-file/ChangeLog | 4 | ||||
-rw-r--r-- | plugins/addressbook-file/addressbook-file.c | 8 | ||||
-rw-r--r-- | plugins/calendar-file/ChangeLog | 4 | ||||
-rw-r--r-- | plugins/calendar-file/calendar-file.c | 7 |
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; } |