diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2003-06-10 02:17:10 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2003-06-10 02:17:10 +0800 |
commit | c67d63acbaabca31297960e29725a9ef3224d327 (patch) | |
tree | 67092f1deb2cbc3dccdae747219c3930add5a507 /filter/filter-source.c | |
parent | 0e8a7f2e737a6883dbe381437425043d0ec7f83b (diff) | |
download | gsoc2013-evolution-c67d63acbaabca31297960e29725a9ef3224d327.tar.gz gsoc2013-evolution-c67d63acbaabca31297960e29725a9ef3224d327.tar.zst gsoc2013-evolution-c67d63acbaabca31297960e29725a9ef3224d327.zip |
Fixes some leaks from bug #43883.
2003-06-06 Jeffrey Stedfast <fejj@ximian.com>
Fixes some leaks from bug #43883.
* filter-file.c (xml_decode): Free file->path and set it to
NULL before entering the loop to decode it. This way if the value
is already set we don't leak it. Set file->path = g_strdup (str ?
str : ""); and then xmlFree the str.
2003-05-21 Jeffrey Stedfast <fejj@ximian.com>
* filter-source.c (filter_source_get_sources): Same as below.
* filter-label.c (xml_create): Unref the gconf client when we're
finished with it.
svn path=/trunk/; revision=21390
Diffstat (limited to 'filter/filter-source.c')
-rw-r--r-- | filter/filter-source.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/filter/filter-source.c b/filter/filter-source.c index 365403bdf2..a7713988ec 100644 --- a/filter/filter-source.c +++ b/filter/filter-source.c @@ -345,12 +345,16 @@ filter_source_get_sources (FilterSource *fs) { EAccountList *accounts; const EAccount *account; + GConfClient *gconf; EIterator *it; char *uri; CamelURL *url; - + /* should this get the global object from mail? */ - accounts = e_account_list_new(gconf_client_get_default()); + gconf = gconf_client_get_default (); + accounts = e_account_list_new (gconf); + g_object_unref (gconf); + for (it = e_list_get_iterator((EList *)accounts); e_iterator_is_valid(it); e_iterator_next(it)) { |