diff options
author | Mark McLoughlin <mark@skynet.ie> | 2002-07-09 00:10:19 +0000 |
---|---|---|
committer | Mark McLoughlin <mmclouglin@src.gnome.org> | 2002-07-09 00:10:19 +0000 |
commit | 851bb987f194e06f1031b47db13d2ce0ca36ffbd (patch) | |
tree | 920e5f797c5bde8065e8018b109f7bc2ec91186d | |
parent | 4acf2f2352a41ac6f87aa98f964f1f95915a5020 (diff) | |
download | gconf-851bb987f194e06f1031b47db13d2ce0ca36ffbd.tar.gz |
fix silly with addresses list.
2002-07-09 Mark McLoughlin <mark@skynet.ie>
* gconf/gconfd.c: (obtain_database): fix
silly with addresses list.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | gconf/gconfd.c | 5 |
2 files changed, 8 insertions, 2 deletions
@@ -1,3 +1,8 @@ +2002-07-09 Mark McLoughlin <mark@skynet.ie> + + * gconf/gconfd.c: (obtain_database): fix + silly with addresses list. + 2002-07-04 Havoc Pennington <hp@pobox.com> * gconf/gconfd.c (logfile_read): close our FILE* when we're done. diff --git a/gconf/gconfd.c b/gconf/gconfd.c index 2a8d855a..328f5c64 100644 --- a/gconf/gconfd.c +++ b/gconf/gconfd.c @@ -857,13 +857,14 @@ obtain_database (const gchar *address, GError* error = NULL; GConfDatabase *db; - g_slist_append(addresses, g_strdup(address)); db = lookup_database (address); if (db) return db; - + + addresses = g_slist_append(addresses, g_strdup(address)); sources = gconf_sources_new_from_addresses(addresses, &error); + g_slist_free (addresses); if (error != NULL) { |